geocoding

API key Browser API keys cannot have referer restrictions when used with this API

好久不见. 提交于 2019-11-27 01:45:34
问题 I'm trying to program geocoding. I created API key, but when I add it into my website code I don't get anything, however when I don't use API everything works well. When I'm sending: https://maps.googleapis.com/maps/api/geocode/json?address=".$adres."&key=KLUCZ_XXX I get a response: Browser API keys cannot have referer restrictions when used with this API. If I use: https://maps.googleapis.com/maps/api/geocode/json?address=".$adres" The result is correct but the number of queries is limited

Get only country specific result using google geocode api

主宰稳场 提交于 2019-11-27 01:35:53
问题 I am using google geocode api for fetching lat long using postal code of singapore I have tried following to fetch data: (1) http://maps.googleapis.com/maps/api/geocode/json?address=505468&sensor=false (2) http://maps.googleapis.com/maps/api/geocode/json?address=Singapore%20505468&sensor=false (3) http://maps.googleapis.com/maps/api/geocode/json?address=Singapore%20505468&sensor=false&region=sg But it returns location from India https://developers.google.com/maps/documentation/geocoding/?hl

How to get the bounding coordinates for a US postal(zip) code?

ε祈祈猫儿з 提交于 2019-11-27 01:21:37
问题 Is there a service/API that will take a postal/zip code and return the bounding(perimeter) coordinates so I can build a Geometry object in a MS SQL database? By bounding coordinates, I mean I would like to retrieve a list of GPS coordinates that construct a polygon that defines the US zip code. 回答1: An elaboration of my comment, that ZIP codes are not polygons.... We often think of ZIP codes as areas (polygons) because we say, "Oh, I live in this ZIP code..." which gives the impression of a

Geocoding api over query limit

こ雲淡風輕ζ 提交于 2019-11-27 00:56:55
问题 I'm using the geocoding API on the server side to translate addresses in latlng. I faced a OVER_QUERY_LIMIT status even though : - the server didn't exceed the 2500 limitation (just a few request on this day) - it didn't do many requests simultaneously (just one single request at a time) how is that possible ? the next day the geocoding was working well but i'm concerned about my application working correctly in the long run. Thanks in advance. 回答1: This is how I have handled this issue in

Retrieving Postal Code with Google Maps Javascript API V3 Reverse Geocode

流过昼夜 提交于 2019-11-27 00:46:41
问题 I'm trying to submit a query using the postal code to my DB whenever the googlemaps viewport center changes. I know that this can be done with reverse geocoding with something like: google.maps.event.addListener(map, 'center_changed', function(){ newCenter(); }); ... function newCenter(){ var newc = map.getCenter(); geocoder.geocode({'latLng': newc}, function(results, status){ if (status == google.maps.GeocoderStatus.OK) { var newzip = results[0].address_components['postal_code']; } }); }; Of

Converting latitude and longitude to decimal values

旧街凉风 提交于 2019-11-27 00:06:26
I have GPS information presented in the form: 36°57'9" N 110°4'21" W I can use the javascript functions of Chris Veness to convert degrees, minutes and seconds to numeric degrees, but first need to parse the GPS info into the individual latitude and longitude strings (with NSEW suffixes). I have read related posts on stackoverflow, but am not a regex expert (nor a programmer) and need some help with the parsing function. What's the best way to parse this string into latitude and longitude for use in the conversion function? The result of all this will be a Web link that one can click on to see

iOS - MKMapView place annotation by using address instead of lat / long

≡放荡痞女 提交于 2019-11-27 00:05:25
I am able to place annotations on my MKMapView by using latitude and longitude, however, my feed coming in that I need to use location for is using street addresses instead of Lat and Long. e.g 1234 west 1234 east, San Francisco, CA ... Would this have something to do with the CLLocationManager ? Has anyone attempted this before? Based on psoft 's excellent information, I was able to achieve what I was looking for with this code. NSString *location = @"some address, state, and zip"; CLGeocoder *geocoder = [[CLGeocoder alloc] init]; [geocoder geocodeAddressString:location completionHandler:^

How can I get city name from a latitude and longitude point?

大城市里の小女人 提交于 2019-11-26 23:55:28
Is there a way to get a city name from a latitude and longitude point using the google maps api for javascript? If so could I please see an example? smartcaveman This is called Reverse Geocoding Documentation from Google: http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding . Sample Call to Google's geocode Web Service: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true&key=YOUR_KEY Here is a complete sample: <!DOCTYPE html> <html> <head> <title>Geolocation API with Google Maps API</title> <meta charset="UTF-8" /> </head> <body>

What datatype to use when storing latitude and longitude data in SQL databases? [duplicate]

淺唱寂寞╮ 提交于 2019-11-26 23:22:29
This question already has an answer here: What is the ideal data type to use when storing latitude / longitude in a MySQL database? 20 answers When storing latitude or longitude data in an ANSI SQL compliant database, what datatype would be most appropriate? Should float be used, or decimal , or ...? I'm aware that Oracle, MySql, and SQL Server have added some special datatypes specifically for handling geo data, but I'm interested in how you would store the information in a "plain vanilla" SQL database. Decimal(9,6) If you're not used to precision and scale parameters, here's a format string

How do I do geocoding (NOT reverse geocoding) on iPhone?

心已入冬 提交于 2019-11-26 23:10:54
问题 I am perplexed as to why there is an iPhone API for Reverse Geocoding (lat/long to address) but NOT for regular Geocoding (address to lat/long). I want to be able to display an annotation on a map (MKMapView) at an address entered by the user. (As text, not by touching the map) As far as I can tell, that means I have to determine the lat/long for the entered address. It looks like it can be done using HTTP, but then, Reverse Geocoding ALSO could have been done that way, too. Why did they