I'm currently working on an website and pulling in listings from the RETS (Real Estate Transaction Standard) API. I have everything working fine, but my issue comes when trying to dig deeper with queries. For reference i'm using Node RETS Client but i'm not sure it has anything to do with the issue.
When i run the following query, it returns results from the appropriate association (REBGV = Real Estate Board of Greater Vancouver)
{ QueryType: 'DMQL2',
Format: 'COMPACT-DECODED',
Count: 1,
StandardNames: 0,
RestrictedIndicator: '***',
Limit: 10,
SearchType: 'Property',
Class: 'RD_1',
Query: '(LM_Char10_4=REBGV)' }
However when I run this query, I get the error Illegal number in range for field [L_Area]
:
{ QueryType: 'DMQL2',
Format: 'COMPACT-DECODED',
Count: 1,
StandardNames: 0,
RestrictedIndicator: '***',
Limit: 10,
SearchType: 'Property',
Class: 'RD_1',
Query: '(LM_Char10_4=REBGV),(L_Area=Vancouver)' }
... which is confusing to me since there are no numbers anywhere in that option. Has anybody encountered something like this or have any insight into what i'm doing wrong in the query?