Making a map application on Windows Phone 8. Thanks to a the tutorials on MSDN I can automatically find the users location and, if services are turned off, default to a city.
I would also like to let the user specify their location using a street name or post code. The user will input this into a text box. My question is how do I change thee maps centre to an inputted postcode or street name?
You need to get the GPS coordinates for the address and then center the map to this coordinates. Bing API provides reverse geocoding.
google geocoding API
you can send a Geocoding request and you will get a response as JSON/XML format.
https://developers.google.com/maps/documentation/geocoding/?csw=1#GeocodingResponses
Related
My requirement is, I have a set up of few IP cameras in a certain area. I have geo-location of each camera.All cameras are set-up in urban area. can I call these cameras on google-maps? is there any API for that ? i should get live feed, when I click on a particular camera .. Please help me
Google map not providing any API for controlling any type of hardware devices. If you want to control you have to set up everything yourself. Google map is an API for doing map or location operations like getting the latitude and longitude of a location, get the distance from one location to another, and a map view. In your case I don't think Google map can give any help.
You can start reading documentation of Google map from here
I want to integrate google map into my website which locate only my stores from city typed by visitors.
For example, let's say i'm integrating for kfc. so if any visitor enters any city it will locate all the kfc store location in that city.
I seached into google, but too confused which api and how to integrate? I found map api, places api, map api for business, etc..
Please guide me I want something like this http://www.kfc.com/storelocator/ using google map.
I am using google map api i am fetching dynamically latitude and longitude from my database.
I want to show address for each position can any one tell me how can id that.
or can any anyone tell how this site is fetching address for each every position.
http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude.php#.UTpYG1c9nwk
Fetching the associated address from a coordinates is called Reverse Geocoding
The Google Maps API provides reverse geocoding in the javascript API and as a web service.
The Google Maps service is not intended for bulk use. Your best option is to store the address in your database along with the coordinates as Reverse Geocoding is not always reliable.
You can use google map api like below
http://maps.googleapis.com/maps/api/geocode/json?latlng=34.41448,-118.93753&sensor=true
Using this api,you can get address address from key
"formatted_address" : "1271 Cliff Avenue, Fillmore, CA 93015, USA"
Whole address you can get using this api.
Hope need helpful.
I'd guess that site is using the Reverse Geocoding API provided by Google.
Using a website, I am trying to capture user's latitude / longitude point and based on that grab his current address.
I am able to do this using Google Maps API: geolocation and Reverse GeoCoding. But, my requirement is to get this information without displaying the map. As far as I have read, Google Maps Term of Use prohibits such thing.
Can anyone let me know if there is any other service which can serve my purpose without displaying maps or does Google Maps allow such thing? I am not sure about Bing, Yahoo.
EDIT: On page load, I need to grab user's latitude and longitude and based on that get address information. I am planning to use this address information for displaying nearby locations/places to visit. I have to achieve this without displaying any map.
Yahoo PlaceFinder does it. If you pass through the latitude and longitude in the location parameter and gflags=R, it should return address data.
You'll have to get a Yahoo APP id, but its free and pretty easy to set up.
EDIT: I see you want to do geolocation too, if you can't use google I would investigate html5 geolocation and or use freegeoip.net to geolocate by ip address.
I don't know if Im mistaken this post, but if you read this:
(viii) store or allow end users to store map imagery, map data or geocoded location information from the Yahoo! Maps APIs for any future use;
(ix) use the stand-alone geocoder for any use other than displaying Yahoo! Maps or displaying points on Yahoo! Maps;
It's mean that you can't store the information, or make use of it, without maps.
So the google api and the yahoo api need to have a map...
note- I take that lines from the terms of yahoo: http://info.yahoo.com/legal/us/yahoo/maps/mapsapi/mapsapi-2141.html
EDIT - Now I'm trying to use http://www.geonames.org/export/reverse-geocoding.html It's easy, and works fine for me. I just need the city and maybe a postal code.
I don't think Yahoo requires you to show a map and it also has a higher quota.
http://developer.yahoo.com/geo/placefinder/
There are a number of geolocation APIs - here is a really good one:
https://geoip.nekudo.com/
You merely make a GET request to
http://geoip.nekudo.com/api/{ip}/{language}/{type}
where ip, language and type are optional.
E.g. in Angular 5, using HttpClient:
this.http.get('http://geoip.nekudo.com/api/')
.subscribe(
data => { console.log('SUCCESS! Your coords are lat:', data.location.latitude, 'long:', data.location.longitude); },
error => { console.log('ERROR!', error); }
);
Also, note that the geoip service is written in PHP and open source (https://github.com/nekudo/shiny_geoip) so you can house your own implementation to reduce third party dependencies.
I'm impressed with the simplicity of Microsoft's Virtual Earth Street Address search service.
My requirement is to type rough address info with no comma separators into a simple text box, press a find button, wait a few seconds and then observe a result picklist.
I mocked up something here using the virtual earth SDK.
Does Google Maps have a similar API?
Which street address search service is better?
Yes.
There is a bit of information in these related questions:
How do you perform address validation?
How to obtain longitude and latitude for a street address programmatically (and legally)
There's also the yahoo maps API