[GS7] How to find your interested location with GS7
Problem - You cannot search and find the location in you concern
Using the HERE Geocoding and Search API v7 (GS7), you cannot find the location in concern.
It is possible that HERE map content has you location missing but check if you used the correct service first before jumping to the conclusion.
Example - You may think there is a school located at (24.74090615,46.76287576) but cannot get the expected result.
Using the HERE WeGo online can replicate the issue by searching (24.74090615,46.76287576) at https://wego.here.com
Or with the Reverse Geocoding endpoint of GS7 with the following API request and response:
https://revgeocode.search.hereapi.com/v1/revgeocode?apikey=`{{api_key}}`&at=24.74090615,46.76287576⟨=en-US
> RFRA7533, 7533 Amro Bin Maad Bin Yakreb Street, Al Roudah, 13213 Riyadh, Saudi Arabia
Note the expected result is at the northwest of the searched result, not far away.
NOT resolution - straightforward but does not meet your needs
The school in your interest is located at (24.74158, 46.76245), which could be retrieved on HERE WeGo:
With the Reverse Geocoding endpoint of GS7, you can also get the school with the geo coordinates of (24.74158, 46.76245):
However, you may only have the geo coordinates of (24.74090615,46.76287576) but still want to find the school. How to?
Resolutions - try the Browse or Discover endpoints of GS7 instead of Reverse Geocoding
You can browse the locations around your specified geo coordinates with the following Browse query:
https://browse.search.hereapi.com/v1/browse?apiKey=`{{api_key}}`&at=24.74090615,46.76287576⟨=en-US
The school in your interest is fortunately returned as the first item in reponse:
If have a special concern on schools, use the following Discover query to filter out schools around the specified geo coordinates:
When Reverse Geocoding does not give you expected location with a known geo coordinate, try the Browse and Discover GS7 endpoints.
Reference - different Endpoints of GS7 for different use cases:
https://www.here.com/docs/bundle/geocoding-and-search-api-developer-guide/page/topics/endpoints-overview.html