Does Mapbox Geocoding API support Island place type? - mapbox

I have been testing the Mapbox Geocoding API using the Playground and noticed that search for "Martha's Vineyard" does not return the popular island off the coast of Massachusetts. There seems to be no "island" data type (tag or place) in the API docs geocoder.
https://docs.mapbox.com/api/search/geocoding/
However on OpenStreetMap I can find Martha's Vineyard the island (place tag = island):
https://www.openstreetmap.org/relation/3957157
So is there a reason why Mapbox geocoding data does not match OpenStreetMaps data? Is it not the same source dataset? Thanks for explaining!

Related

Is mapbox geocoder API available for usage without a map?

I am reading through mapbox JS api but don't seem to find any the geocoding API call that would enable me to provide place lookup using my own typeahead component. So basically I am after sending out a query and receiving an array of results.
I do not mean the example on how to place geocoder Control on or off the map, but rather how can I provide places lookup in my own form [Angular, React, whatever] that does not display any map. Is that possible at all?
[UPDATE May 2020]
Mapbox now does allow you to use a Geocoder without using a map (search form with autocomplete)
July 1, 2019: Removed the default restriction that Services have to be
used in conjunction with a Mapbox map. Point of interest results from
the Geocoding API and Enterprise Boundaries must still be used in
conjunction with a Mapbox map.
Examples can be found from the Mapbox website and from Mapbox Github page.
This previous answer shows an alternative plugin/ service called Algolia that you can use to create a Geocoder.
Another alternative is to use Geocodio.
However, both Geocodio AND Mapbox Geocoder (without a map present) do not support POI (Point of Interest)
E.g. A named place including commercial businesses, public buildings, monuments, and parks, etc.
Hope this helps someone in the future!
This is apparently the violation of Mapbox's terms of service:
You may only use responses from the Geocoding API ("Geocodes") in
conjunction with a Mapbox map.
That's the reason why mapbox-gl-js MapboxGeocoder control (which consumes Mapbox Geocoding API) comes in conjunction with a Mapbox map only and means your scenario is not supported.
July 1, 2019: Removed the default restriction that Services have to be used in conjunction with a Mapbox map. Point of interest results from the Geocoding API and Enterprise Boundaries must still be used in conjunction with a Mapbox map.

POI not found with geocoding API

I am trying to use the MapBox Geocoding API and for it I tried to translate "Centre Hospitalier Régional d'Orléans" (that is an Hospital in France, Orléans) into Lng/Lat coordinates.
When I display a MapBox Map, I can see the POI:
And when I click it in MapBox Studio, it is well recognized as a Point Of Interest (POI) (poi-label):
But when I try to find it using the Geocoding API, I don't find it.
Here is the request I run:
https://api.mapbox.com/geocoding/v5/mapbox.places/Centre%20Hospitalier.json?access_token=pk.eyJ1IjoibWF0dGZpY2tlIiwiYSI6ImNqNnM2YmFoNzAwcTMzM214NTB1NHdwbnoifQ.Or19S7KmYPHW8YjRz82v6g&cachebuster=1547469044480&autocomplete=true&country=fr&proximity=1.909251%2C47.902964
Is it normal ? Am I doing something wrong or is it a bug ?
The data behind the maps and the geocoder aren't necessarily the same, so it's likely this Hospital is showing up on the map from OpenStreetMap, but isn't in the data being used for the geocoder.
Some information about data sources is at https://www.mapbox.com/about/maps/
You can report feedback about this at https://apps.mapbox.com/feedback/ mentioning its a geocoding issue.

Mapbox GL JS Geocoding to only reference Tileset

I'm using Mapbox's Geocoding (search box) and was wondering if there's a way that it would only reference my Tileset data rather than the generic global address search? Looks like Mapbox has a "Supplement geocoding search results from another data source", however the example is referencing geographic coordinates rather than addressing. So I'm still not sure if this is possible?
Basically I want to enter an address in the Geocoding search box and to have a particular polygon selected from my dataset on the map. Any help would be greatly appreciated.
The example you linked to shows how to supplement search results with a local source, not a remote source in the https://github.com/mapbox/mapbox-gl-geocoder.
Currently Mapbox doesn't provide a Geocoding API against your own data however depending on how large your dataset is (and assuming it's a Mapbox Dataset and not just a Mapbox Tileset) you could use the Datasets API to read in every feature into the client with https://github.com/mapbox/mapbox-sdk-js/blob/master/API.md#listfeatures and use the results of that to power the mapbox-gl-geocoder search like https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-local-geocoder/

Can I get latitude and longitude for multiple addresses at a time with leaflet js?

Can I get latitude and longitude for multiple addresses at a time with leaflet js as a JSON?
Like #IvanSanchez said, Leaflet wasn't made to do that. There is, however, a great geocoding plugin to Leaflet that is available on github:
https://github.com/smeijer/L.GeoSearch
No.
LeafletJS is a map display library, not a geocoding service.

Using the ( REST and Spatial Data Services ) inputs a location and distance from that location to search in India & other countries

I am working on an application which includes bing map with following functionality
User inputs a location and distance from that location to search.
Bing Maps REST Services Locations API is used to geocode the location.
Bing Spatial Data Services Query API is used to search for points of interest near the location.
The POI information is displayed and pushpins are added to the map.
for this I used following code http://msdn.microsoft.com/en-us/library/hh757509.aspx in my application which is working fine for North America because NAVTEQNA data source contains information about points of interest (POIs) in North America.
Now if i replace NAVTEQNA with FourthCoffeeSample which is provided http://msdn.microsoft.com/en-us/library/gg585133.aspx . this is also working fine for same area but not working for India & other countries including US also except of North America.
Note
If I am entering any address of any country the address is Geocoding using the REST Services, but it is not searching for points of interest (POI) using Spatial data Services. Searching for points of interest (POI) using Spatial data Services is working fine for North America.
Please suggest me how it will work for India & other countries.
NAVTEQNA is a data source with only data in North America. NAVTEQEU has data for Europe. There is no data source in the Bing Spatial Data Services with POI for India. You can use the old Bing Maps SOAP Search Service which has NAVTEQ + other POI data and may include India. Also the Search Manager in the Bing Maps controls also has this same data.