I was using IncludeShapeLevel on geocoder for a while now, but suddenly it stopped returning Shape value.
The article is still in the documentation and even the example is not working.
https://developer.here.com/documentation/geocoder/dev_guide/topics/example-geocode-retrieve-shape-area.html
My request
https://geocoder.ls.hereapi.com/6.2/geocode.json?apiKey=${hereApiKey}&searchtext=${postCode}+Czech+Republic&additionaldata=IncludeShapeLevel,postalCode
Thank you
Soo, the answer is DONT use API key for javascript. It used to work, but now you need to use REST API key. With REST api key it works like it used to.
Related
I am doing a POC for one of my projects using HERE Geocoding and Search api. I want to search places around a given latitude and longitude and need details of those places including an image/images.
I am using https://browse.search.hereapi.com/v1/browse?at=47.80049,3.57119&limit=2&categories=700-7600-0000,700-7600-0116&apiKey={YOUR_API_KEY} which returns all details of places but without image related details.
So I tried to use https://lookup.search.hereapi.com/v1/lookup?id=here:pds:place:276u33dc-2ba407e1181849c9a761a336b8df1805&apiKey={YOUR_API_KEY} where id is returned as one of the attributes in response of previous /browse call, but again this returns same details (without image) as retuned by /browse api.
I tried to follow this documentation https://developer.here.com/documentation/geocoding-search-api/migration_guide/migration-places/topics-api/place-details.html but it doesn't help much.
So is there a way to retrieve image/images for places using HERE Geocoding and Search api. I would be grateful if some one can share their experience or guide me to correct documentation.
The Media Type attributes are currently not returned in GS7 apis. The same is told in the below document.
https://developer.here.com/documentation/geocoding-search-api/migration_guide/migration-places/topics-api/place-details.html
Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more...
Found out how to do it! If you get a geocoding API key from Google you can get all the data for natural features included in the JSON/XML response from a server request like the following (I was trying to get the data for "Gamsey Wood"):
https://maps.googleapis.com/maps/api/geocode/json?latlng=52.4180698,-0.2029999&result_type=natural_feature&key=YOUR_GOOGLE_GEO_KEY
Happy days!
I would like to use the api like airbnb. I have search and read all posts/stackoveflow/google group that i can. I couldn't find the answer
In general i would like to do the following:
Would like the user to have the ability to insert advertise with full address
I would like to search in my db by city/street/country and radius according to users ads
Does i have to use api key? I have found autocomplete example without the api key and i works fine
Hope it makes sense.. I have looked on this Google group thread and this stackoverflow thread.. But i am not sure if this flow is allowed and optimise.
Thanks
I am having issue with Google Maps API:
When I am requesting following url it returns results
https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens
But using waypoints=optimize:true returns no data
https://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens&waypoints=optimize:true
I can't understand the reason. Please some one help.
I have checked the doc they said to put waypoints between, but what if origin and destination is dynamic and I don't know the waypoints.
I believe you don't get any results, because you don't actually pass any waypoints. This is the example request provided in the Docs:
https://maps.googleapis.com/maps/api/directions/json?origin=Adelaide,SA&destination=Adelaide,SA&waypoints=optimize:true|Barossa+Valley,SA|Clare,SA|Connawarra,SA|McLaren+Vale,SA
Try adding some waypoints by appending it to your request and separating them by using the pipe character |.
I'm doing some research on route distance calculation APIs, and I came across this API from Ovi/Nokia: http://api.maps.ovi.com/devguide/getting_started.html#Services
Does anyone know if they have an equivalent REST API that can be used outside of a client browser scenario?
If not, what's the best option for route distance calculation APIs? I've looked into Google, Bing, and MapQuest, but I would like to be able to use it internally without a daily rate limit.
Thanks for your help.
There is the maps image API, if showing the routes as images are sufficient. This page has the complete list if Nokia Maps APIs.
I do not want to repeat what is done, so please refer to the Nokia API reference, but to be more accurate use distance method from nokia.maps.geo.Coordinate. The complete documentation is here
Click here!