Hi Javaone - yes, these cities have unknown IDs. New York City has an ID though. This is an internal mapping on our side. Is your application having an issue with these unknown IDs?
Thanks,
My expectation was that the reason why City IDs are exposed in getCitiesInState call is due to fact that they could be used in getCityStats for faster lookups, which would also eliminated the need to provide state codes. However, after looking at TruliaStats APIs, only getNeighborhoodStats uses IDs, everything else uses ‘names’. In which case, that’s the use of these IDs? Seems like a waste.
GetCitiesInState returns ‘Manhattan’ and ‘Manhatten’ – I am assuming they are duplicates and second one should be removed due to misspell.
Hi Javaone - these IDs are used for some internal apps that are built on our API. Also, stats data for Manhattan is returned as New York City. Sorry for the confusion this may have caused.
Thanks,
When making the following query to get cities for NY state
http://api.trulia.com/webservices.php?library=LocationInfo&function=getCitiesInState&state=ny&apikey=mykey
The following cities returned with 'unknown' IDs:
Bronx
Brooklyn
Manhattan
Manhatten (typo?)
Queens
truliaadmin – 2 years ago
Hi Javaone - yes, these cities have unknown IDs. New York City has an ID though. This is an internal mapping on our side. Is your application having an issue with these unknown IDs?
Thanks,
javaone – 2 years ago
My expectation was that the reason why City IDs are exposed in getCitiesInState call is due to fact that they could be used in getCityStats for faster lookups, which would also eliminated the need to provide state codes. However, after looking at TruliaStats APIs, only getNeighborhoodStats uses IDs, everything else uses ‘names’. In which case, that’s the use of these IDs? Seems like a waste.
GetCitiesInState returns ‘Manhattan’ and ‘Manhatten’ – I am assuming they are duplicates and second one should be removed due to misspell.
javaone – 2 years ago
Also, GetCityStats for neither 'Manhanttan' nor 'Manhatten' returns any 'listingStats' data, while it does for others with 'unkown' city ids.
truliaadmin – 2 years ago
Hi Javaone - these IDs are used for some internal apps that are built on our API. Also, stats data for Manhattan is returned as New York City. Sorry for the confusion this may have caused.
Thanks,