HERE Geocoder Autocomplete API - No suggestion for an existing location - here-api

I have an issue with a location I need to find with HERE API : 194 avenue de la Gare Sud de France, 34970 Lattes
I'm not able to find it.
As it's an existing, could you please advice on what I need to do to fix this issue?
I'm using the Geocoder Autocomplete API and Here is my request :
https://autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json
?apiKey={MYAPIKEY}
&query=194%20avenue%20de%20la%20Gare%20Sud%20de%20France%2034970%20Lattes
Unfortunately, I don't have any suggestion in response :
{
"suggestions": []
}

Related

Encountered problem with geocoder Here API for searching island

I'm using https://geocoder.api.here.com/6.2/search.json, and when I make a search for "Ile de Ré, France" I have a response but in the object Address I have this :
Address: {Label: "D735, 17000 La Rochelle, France", Country: "FRA", State: "Nouvelle-Aquitaine",…}
Label: "D735, 17000 La Rochelle, France"
Country: "FRA"
State: "Nouvelle-Aquitaine"
County: "Charente-Maritime"
City: "La Rochelle"
Street: "D735"
PostalCode: "17000"
Instead of having the all island...
Does someone know how to have the all island address instead of just having a road?
This is the resquest :
https://geocoder.api.here.com/6.2/search.json?language=fr&app_id={APPID}&app_code={APPCODE}&searchtext=%C3%8Ele%20de%20R%C3%A9&additionaldata=IncludeShapeLevel%2C%20default&gen=9&mapview=46.14288%2C-1.5629%3B46.2582%2C-1.25416
Thanks ! =)
It is not entirely clear from your question what your expected response is. If you are expecting a list of all addresses in the area, that is not supported.
If you are expecting to get the shape/area of the island as a polygon, then you need to use the mode "retrieveAreas" as Michael has stated above. This blog post on How to Get the Shape of an Area using the HERE Geocoder should hopefully answer most of your questions regarding this feature.
The API call you are looking for would be the following, which retrieves the postal code area around a location. Note that in order to get the location as a lat/long you need to first Geocoder "Ile de Ré, France" using the forward Geocoder.
https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json
?apiKey=YOUR_API_KEY
&prox=46.20054,-1.39985
&mode=retrieveAreas
&additionaldata=IncludeShapeLevel,postalCode
However, the Geocoder can only retrieve areas such as postal codes, administrative districts, counties, etc. In this case, none of them correspond exactly to the island. For example the island has multiple postal codes and its county covers a much larger area.
You can use this code example I've built to experiment. Here's a screenshot made using this tool to show the area of a postal code on the island.
Try adding mode=retrieveAreas to your API call

ColdFusion - Google Maps API Key CFIDE reference in code?

In the ColdFusion Administrator interface, there is a place where you can store your Google Maps API Key. The issue I'm having through is trying to figure out HOW to reference this key in code? I don't see anything in the documentation.
Does anyone have any ideas?
It is used automatically in the <cfmap> tag.
<cfmap centeraddress="Los Angeles City Hall, 100 N Main St., Los Angeles, CA" />
Example from: http://www.isummation.com/blog/new-coldfusion-9-feature-cfmap/
Also see: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-m-o/cfmap.html

Missing Zip Codes in Google APi

We have enables Google Autocomplete on our Website but we have found some zip codes do not register with the API. 60514 will populate Clarendon Hills, IL 60514, but the follow zip codes do not work.
32312 – Tallahassee, FL
48260 – Detroit, MI
10510 – Westchester County, NY
29302 – Spartanburg, SC
24001 – Roanoke, VA
All these zip codes are active and verified from Zip-codes.com. You can even find the zip code in Google Maps but not in the Google API Autocomplete.

How to get city name from google map in ionic 2

How to obtain a city name from google map in ionic 2 If I have latitude and longitude coordinates of the area?
I searched all over the internet but I couldn't find the solution.
You can use Geociding, as explained in this thread from Ionic's forum
import { Geocoder, GeocoderRequest } from 'ionic-native';
let req: GeocoderRequest = { position: location }
Geocoder.geocode(req).then((results)=>{
})
You can find all you need about your location with this link. you can use geocode api as follow.
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_API_KEY
just replace latlng by those you have and key by your API key found on google console.
Reminder: To use the Geocoding API, you must include an API key with all API requests and you must enable billing on each of your projects
more infos here.
https://developers.google.com/maps/documentation/geolocation/intro

fetching all the Restaurants, supermarkets, malls etc. nearby using the Google Maps Api

I'm new in iPhone Development. I'm creating an application in which i need to fetch all the Restaurents, supermarkets, malls etc. in the nearby location using GoogleApi. Im using following link to find the venue:
https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=grocery_or_supermarket&sensor=true&key=AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI
But I'm getting the following message:
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
Please help.
Any solution will be appreciated.
Thanks in advance.
"Access denied" is coming because the key(AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI) you are using is not valid.
You have to register your project on on Google and have to generate unique key from this link.replace the generated key with the key in your link, then this will work fine.
If you have any other query let me know.

Resources