Search With City, State, Country and Zip without any format
imran
Topic created 14 years ago
Hello I am using your Search API.
In my application, I am allowing the users to enter City, State, Country and Zip.
Our users can enter any of these fields without any format.
The problem here is that your API restricting me to use the below formats.
l = location
To narrow a search to a geographic area, use the l parameter to specify a location. The formats available are:
city,state,country
postal code,country
state,country
postal code (US is assumed country)
state (US is assumed country)
Is there is any way to allow users to enter these fields without using any formats given above?
I mean users can enter,
City
City State
State City
Country
Zip
Zip City
Please help me
Message edited by imran 14 years ago
active Admin
–
14 years ago
Unfortunately not. location has to be in those prescribed formats so that we can properly localize the search query (pull in latitude and longitude). I recommend using the Google Geocoding API, http://code.google.com/apis/maps/documentation/geocoding/, to format your location parameter.
Hello I am using your Search API.
In my application, I am allowing the users to enter City, State, Country and Zip.
Our users can enter any of these fields without any format.
The problem here is that your API restricting me to use the below formats.
l = location
To narrow a search to a geographic area, use the l parameter to specify a location. The formats available are:
city,state,country
postal code,country
state,country
postal code (US is assumed country)
state (US is assumed country)
Is there is any way to allow users to enter these fields without using any formats given above?
I mean users can enter,
City
City State
State City
Country
Zip
Zip City
Please help me
Message edited by imran 14 years ago
active Admin – 14 years ago
Unfortunately not. location has to be in those prescribed formats so that we can properly localize the search query (pull in latitude and longitude). I recommend using the Google Geocoding API, http://code.google.com/apis/maps/documentation/geocoding/, to format your location parameter.
imran – 14 years ago
Thanks