Closed Raruto closed 11 months ago
@leolami
Presently, the Local Search API supports business entities only in the US. https://learn.microsoft.com/en-us/bingmaps/rest-services/locations/local-search
As an alternative, I'm studying what can be done using the Overpass Turbo API, which queries OpenStreetMap data and requires no additional licenses / keys), eg: 👉 https://overpass-turbo.eu/s/1BKA
👋 Raruto
@Raruto
I fear that OSM's database is not advanced enough to replace that of Bing or Google
The customer is interested in commercial activities and I believe that the data on OSM is not that rich
I would ask you to wait for a customer evaluation before delving into Overpass Turbo API
wait for a customer evaluation before delving into Overpass Turbo API
@leolami Ok.
Although they are not currently displayed in the search results, the Nominam API can also return desired data (eg. name and type of POI, and others depending on the amount of information available on OSM).
However, in the latter case, it should be noted that there is maximum number of 40 results per request (ie. with no "pagination", which may cause annoyance at lower zoom levels):
Limit the maximum number of returned results. Cannot be more than 40. Nominatim may decide to return less results than given, if additional results do not sufficiently match the query.
Related info:
Hi @Raruto ,
I did some tests with Galt which reports the following example cases of errors:
If I type the location name Lumen Field, Bing and Nominatim locate the stadium in the map extent, but if I type the address: 702 S Jackson St, Seattle, WA which is also in the extent Nominatim finds it, but not Bing.
If I text on the Bing online map the search works.
Also, is there a way to only find addresses within a certain distance of the current extent, such as 100km, to reduce false matches that take you far from your current area of interest?
I thought that in this regard we said that the search had to work only on the displayed area, can you verify?
https://dev.g3wsuite.it/it/map/iim/qdjango/234/
Thanks
702 S Jackson St, Seattle, WA
@Raruto It seems return only Local Business activities
if I type the location name Lumen Field, Bing and Nominatim locate the stadium in the map extent, but if I type the address: 702 S Jackson St, Seattle, WA which is also in the extent Nominatim finds it, but not Bing. If I text on the Bing online map the search works.
@leolami bing provides two different APIs, it cannot be done with a single call:
The Bing Maps Local Search API returns a list of business entities centered around a location or a geographic region. Local Search requests are made by either specifying a list of type string IDs (e.g. "EatDrink") or a query (e.g. "Deep Dish Pizza"), and by specifying either the user's location or a geographical region. Aside from a point, two geographic regions are supported: a bounding box of coordinates or a circular region specified by a radius and a center point.
Note: Presently, the Local Search API supports business entities only in the US.
Use the following URL templates to get latitude and longitude coordinates that correspond to location information provided as a query string. The strings "Space Needle" (a landmark) and "1 Microsoft Way Redmond WA" (an address) are examples of query strings with location information. These strings can be specified as a structured URL parameter or as a query parameter value. This URL template can be used to geocode information from any country/region. For more accurate results, use User Context Parameters, such as the coordinates of a user’s current location.
When you make a request by using one of the following URL templates, the response returns one or more Location resources that contain location information associated with the URL parameter values. The location information for each resource includes latitude and longitude coordinates, the type of location, and the geographical area that contains the location. For more information about the Location resource, see Location Data. You can also view the example URL and response values in the Examples section.
is there a way to only find addresses within a certain distance of the current extent, such as 100km, to reduce false matches that take you far from your current area of interest? I thought that in this regard we said that the search had to work only on the displayed area, can you verify?
Currently the two providers work in a different way:
In future releases, to avoid further confusion, I would consider leave the end user free to decide which behavior is best suited to them (eg. a checkbox like "include searches only from current map extent"
):
👋 Raruto
Checklist
Motivation
As per 2020's Google Maps Terms,
it is no longer allowed to use google maps in custom applications (eg. Open Layers)
Suggested solution
Alternatives considered
Bing Maps
Arcgis