Use Case:
I've got a search box where the intention is to search for addresses, cities and businesses, and up to 5 matching locations will be returned. Then, I'll use the geocoder to get lat/lon coordinates for a selected location based upon locationId.
Desired Outcome: The geocoder autocomplete API works well for cities/states/addresses/etc., but I'd like for the results to include businesses as well (where a business result would come with a locationId). Is this going to be possible with the Here API? Using the Places segment of the API would be an option as well if there's a path forward along that route.
NO, Geocoder API helps to find only addresses based on housenumber, street, country ,county, pincode but it does not tell you if the address is of a business category.
You can try Places API and check if it works for your usecase. Read more at developer.here.com/documentation/places/topics/quick-start-find-text-string.html.
Below is an example of Hotel category(Business) in Sunny Vale, CA. You can get the id and location details here.
https://places.cit.api.here.com/places/v1/discover/explore?at=37.370831%2C-122.024636&cat=500-5000-0000&cs=pds&Accept-Language=en-US%2Cen%3Bq%3D0.5&app_id=xxxx&app_code=xxxx
Related
I am trying to geocode a street interception through Here Geocoder API Forward Geocoding. However, with no success.
There is some example in the documentation:
https://developer.here.com/api-explorer/rest/geocoder/latitude-longitude-intersection
There is an obvious way to do what I want.However, there is a proxy endpoint, which I am not allowed to change and it accepts from client and passes to Here API only free form input.
I tried with the following string for my free form input value,it is the same as the documentation example:
State # Madison, Chicago
But got 0 results.
I just wonder if that is possible at all through Here Forward Geocoding-it seems difficult for implementation without some restriction to the free-form input format?Thanks in advance!
I got the result for street intersection with it, can you please try by using your appkey, id.
https://geocoder.api.here.com/6.2/geocode.json?city=Chicago&street=State%20and%20Madison&app_id=xxxx&app_code=xxxx&gen=9
if the search needs to be in free form, then below API call can work too, but here the search match level is based out of the city, not specific to street.
https://geocoder.api.here.com/6.2/geocode.json?searchtext=200%20S%20Mathilda%20Sunnyvale%20CA&app_id=xxxx&app_code=xxxx&gen=9
I've searched google every way from Sunday that I could think of but I cannot seem to find an answer to my question.
Right now I have a map that is using a FusionTableLayer to display the location of geocoded addresses. Does anyone know if it's possible to get the LatLng coordinates of the geocoded address without having to do a secondary geocoder call to geocode the address? Or maybe get an array of all of the markers currently displayed?
like myFusionTableLayer.getMarkers() or myFusionTableLayer.getMarkerLocation(index) or something would be helpful.
It is not possible to retrieve the locations from geocoded addresses in FusionTables. It used to be possible, but that capability was removed, I believe for legal reasons.
If you geocode the addresses outside of FusionTables and store the coordinates in the table, they will be available.
I need to develop a Point of Interest search application. I would like to allow users to enter queries like "Starbucks in San Diego" or "San Diego Starbucks". I'm able to do this on map.google.com, but I'm not sure if any such heuristic capability is provided by the Google Maps API.
I'm already using Google Places to look for places within a specific area. And I can use Geocoding API to locate addresses on the map.
Is this possible at all with the current API? Any suggestion for doing this?
I would recommend using the Google Places Autocomplete API to perform a request with the input parameter as "San Diego Starbucks", this will return a list of predictions:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=San%20Diego%20Starbucks&sensor=false&key=your_api_key
You can then use the returned reference parameter from a prediction to perform a Place Details Request which will provide you with more information about the selected place, including address and geographical location:
https://maps.googleapis.com/maps/api/place/details/json?reference=ClREAAAA2UwUUGS85fmru6jzwcSS6fcaMgPItqqLPB-cyTTJm6dMSX0IPmpHAqUR6JWiWoZWrtk6sPI_TJzlfoHma4m0kk3VAoDMu21gebdIdtaMnscSEDDjFLZ5iCC-W1iiAvbZM3caFJuU7TIwS6vj9T77wk24BfpeObSB&sensor=true&key=you_api_key
I am using Google Maps API v3 Distance. It has worked well for the majority of the addresses in my database. However, it seems like some addresses just aren't available in Google Maps, and it seems to pick the closest street address match which could be way off. I would expect Google Maps in this case to provide an answer based on city and zip. Does anyone have a solution? I've thought of double checking mathematically by geocode and checking Yahoo maps(or other sites) for the ones that are way off but that adds processing time and is not a very elegant solution. There must be some setting I'm missing or other such work around.
Thanks!
BTW shout out to the new Json Serializer! Well it was new to me anyways.
How are you formatting the address you are sending ?
I've used the Google Maps API to do some reverse geocoding and if a street could not be found (due to a typo or what have you) Google would return the lat lng for the historic town center.
I structured addresses as Country, city cityzip, street nr.
You should use the location_type of the geometry object to determine what accuracy was returned. I suggest checking to see if the returned resulsts indicate whether a result is anything other than ROOFTOP or RANGE_INTERPOLATED.
i want to get ONLY the road name in google maps not exact address, using either the geocoder or the directions service.i tried this results[0].address_components[1].long_name but it returns several different names (not necesserily wrong) on the same road.
You need to do a reverse geocode lookup on the location. Google provide this: http://code.google.com/apis/maps/documentation/geocoding/
Read more here: http://en.wikipedia.org/wiki/Reverse_geocoding