Mapbox Geocoding custom address - mapbox

I would like to add custom addresses to Mapbox Geocoding search bar,
but I could not find any examples in Mapbox's official tutorials for that.
I use my original codes (e.g. #abc1234) to point a corresponding coordinate (longitude, latitude) in my project. The coordinates are calculated from the codes systematically and the number of codes is enormous, so, to be exact I want to install an algorithm (not addresses) to Mapbox Geocoding, enter a code in search bar and get a corresponding address.
Is there a way to do that?

Related

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/

Forms with maps feature that allows users to set their location

I am looking for a online app or code to embed that allows a user to set a certain location on a map.
What we need is a form in which a user inputs its name, address, email and his favorite location which can be a certain point in a town, a point of interest or an arbitrary place in the woods. We would like to see the map selection as well or the GPS coordinates of his selection.
We thought about Google Maps but did not figure a way to achieve this.
Do you have an idea how we can achieve this?
Thanks!
I found something that is usable:
Google Maps API Reverse Geocoding

SSRS - Feed an address into a Bing Map to zoom to?

I have a datasource that has address data. An external application calls for a report and feeds in some tabular data, including an address field.
To simplify things, lets assume that I simply pass one record that contains some address information.
I would like to produce a report that has the Bing map at the top, but via the supplied address field, I would like the map to geocode the supplied address field, zoom to a viewport around that geocoded result, and also drop a pin marker on top of the result.
Is this achievable with SSRS and Bing Maps/Geocoding API?
My actual workflow will be passing in more than one record, and showing a map on a separate page for each record, along with some graphs and tables showing other information about the specific record.
Sure you can do it! (BTW this is not related specific to Bing maps, Bing maps is only a layer with additional info that lays on top of ESRI shapefile Map)
But in order to do that, their are some preparations that you need to do:
First, you need to store the Address data as Geospatial in your DB.
You can find excellent information Here
Second, you need to add the ESRI map and Bing layers to your report, and to define the Dataset with the Geospatial as Points over the Map.
For more information and example Here
.
On a personal note I have to add, you can do amazing stuff with the Map theme. I used it to calculate and present distance between locations, and even added arrows to navigate L/R/U/D in the map.
Good luck !

How to get latitude and longitude of a city?

I am designing a project in which I have used two text fields. One is for source address and another one is for destination address.
Now, I want to get latitude and longitude of both addresses and then draw it on map view.
How can I accomplish that?
check this post for geocoding
http://fredandrandall.com/blog/2011/03/23/geocoding-on-the-iphone-getting-the-latitude-and-longitude-of-an-address/
How do I do geocoding (NOT reverse geocoding) on iPhone?
Do check out SVGeocoder. It's able to perform both forward and reverse gecoding via Google API. Not to mention it's also very easy to use.