TomTom reverse Geocode not returning street name for some gps coordinates - tomtom

For some GPS coordinates, no street name is returned. For example
https://api.tomtom.com/search/2/reverseGeocode/47.532289,-122.251843.json?key=MYKEY&roadUse=[%22LocalStreet%22]&returnRoadUse=true
returns
{"summary":{"queryTime":102,"numResults":1},"addresses":[{"address":{"routeNumbers":[],"countryCode":"US","countrySubdivision":"WA","countrySecondarySubdivision":"King","countryTertiarySubdivision":"Seattle East","municipality":"Mercer Island","postalCode":"98040","municipalitySubdivision":"Mercer Island","country":"United States","countryCodeISO3":"USA","freeformAddress":"Mercer Island, WA 98040","boundingBox":{"northEast":"47.535094,-122.241410","southWest":"47.534766,-122.242287","entity":"position"},"countrySubdivisionName":"Washington"},"position":"47.534897,-122.242287","roadUse":["Publicly Accessible","LocalStreet","Terminal"]}]}
Which contains no street name. Is there anyway to tell the TomTom API to return results that ALWAYS include a street name?

This may be a hack, but if we create a pedestrian route starting with that location (in the middle of Lake Washington) the first instruction starts usually at the closest street that can be navigable, isn't?

These coordinates are pointing to a lake. And the nearest road is some living street with no name. So that is not a perfect example.

Related

R group locations by street

I have multiple (~200,000) longitude/latitude coordinates and I would like to group them by street name. Using reverse geocoding is a solution, but it takes a long time (tried tidygeocoder).
Any other suggestions ?
Thank you!
A possible solution .. (as a note to myself and anyone who may get interested):
oe_get from osmextract gets the street names and geometry of the place.
Then we find the street where each of our points belongs with st_nearest_feature of the sf package.

Is it possible to get all stations of a city through HERE transit-api?

I am trying to locate all stations of a city through here's transit-api
but it seems there exists a constraint in the maximum number of results (50).
Are you aware of any other way?
Thanks a lot!
This is the accurate API to locate the near by transit stations, however it can only return 50 at a time. The alternative way to change centre and radius of the city to calculate all the transit stations.
https://developer.here.com/documentation/examples/rest/public_transit/station-search-proximity
https://transit.api.here.com/v3/stations/by_geocoord.json?center=52.520501,13.403565&radius=1000&max=50&app_id=xxxx&app_code=xxxxx

Reverse Geocode an intersection

I'm using geocoding API to retrieve positions of point addresses and intersections. When trying to reverse geocode the exact position of an intersection, the reverse geocode API endpoint only returns match level "street" but no "intersection". Is there a possibility to configure the REVERSE geocoder to return intersections?
https://geocoder.api.here.com/6.2/geocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}&city=Chicago&street=State%20%40%20Madison&gen=9
The API call above returns following result:
Match Level:"intersection"
Label="S State St & W Madison St, Chicago, IL 60602, United States"
Lat/Lon:41.88206,-87.6278
https://reverse.geocoder.api.here.com/6.2/reversegeocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_ID}&prox=41.88206,-87.6278&mode=retrieveAddresses&gen=9
The REVERSE geocode call above with lat/lon of intersection "S State St & W Madison St" returns following result:
Match Level:"street"
Label="E Madison St, Chicago, IL 60602, United States"
Lat/Lon:41.88206,-87.6278
None of the results returned by the reverse geocoder API contains information about intersections. Do I have any chance to retrieve the location with label="S State St & W Madison St, Chicago, IL 60602, United States" in reverse geocoder API?
I already tried playing around with "gen" and "mode" request param, without success unfortunately.
There is a dedicated parameter to enable crossings in Reverse Geocoding to be returned:
&additionaldata=IntersectionSnapTolerance,1
IntersectionSnapTolerance: N (float in [0, 1]). When reverse geocoding a coordinate, the value controls how strictly an address match is snapped to the next intersection. A value of 0 indicates that no points on a link are snapped to an intersection; a value of 1 indicates that most probably a street intersection is returned as a match. Default value is 0.
More info about additionaldata:
https://developer.here.com/documentation/geocoder/topics/resource-reverse-geocode.html and
https://developer.here.com/documentation/geocoder/topics/resource-params-additional.html
Can you please try the below request which will return the Intersection as match level in the response.
https://geocoder.api.here.com/6.2/geocode.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}&city=Chicago&street=State%20%40%20Madison
https://developer.here.com/documentation/geocoder/topics/example-geocoding-intersection.html
also check the combination of text to find the intersection.
https://developer.here.com/documentation/geocoder/topics/resource-geocode.html

Find map coordinates based on street and cross streets information

Example:
I have a street BECK STREET and two cross streets WESTCHESTER SQUARE and KIRK STREET. As well as direction W.
Result:
Need to drop a pin at this location. If it's easier I would also be ok with drawing a geofence.
What would be a good way to calculate this.

Google Geocode address near a point?

I'm attempting to use Google Geocode to convert a textual address to a longitude/latitude position.
Sometimes, the geocoding operation fails (e.g. the city name is listed as "Rouyn Centre Rouyn-Noranda" instead of "Rouyn-Noranda"). Now, it just so happens that I've got a longitude/latitude point that is near the desired address (say within 1km of the actual address).
Is there a way to look up the coordinates of a street name, number (excluding city, postal code and country) that is "near" a second point?
You could test any subsequent points to see if they're within 1km of the original point using google.maps.geometry.spherical.computeDistanceBetween().

Resources