Questions tagged [geocode]

Geocoding is a method to assign spatial coordinates - like longitude and latitude on the Earth's surface - to a data record or object which represents an address or other geographic data.

Geocoding is a method to assign spatial coordinates - like longitude and latitude on the Earth's surface - to a data record or object which represents an address or other geographic data.


Useful links


Related tags

756 questions
0
votes
1 answer

Using Google Maps to GeoCode and Icelandic address not working?

With A US or canadian address I can geo code with Google API like this: http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=4060 st. Anderson ave,north vancouver, bc,canada But when I pass an address for iceland, I get no…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
1 answer

How to implement a search for location in Android?

Basically, on button click, I want the user to input a keyword or an exact location name, and in a listview, I want to show all the locations that match the given keyword within a certain radius or state/region. I've read about Geocoder/Google Maps…
assaf
  • 69
  • 2
  • 10
0
votes
1 answer

How to use Google Maps Directions API to get zipcode and addresses passed through in python or R.

Recently, I have been experimenting with the Google Maps API for python and R. I have gotten it in Python so it will return a list of directions to get from point A to point B. from googlemaps import GoogleMaps mapService = GoogleMaps() directions…
0
votes
0 answers

How can I push the Lat/Long that Google Maps Geocoded into an array? Won't work.

I'm trying to run through a loop in Wordpress and for each item in the loop I need to geocode the address, then add the LatLng into an array. I think I have it coded right but it will not work. Here is the code:
WilliamAlexander
  • 374
  • 2
  • 4
  • 20
0
votes
1 answer

Google Maps Geocode- dealing with the asynchronous call

I have the code: function mapNextAddress() { var xhr, i, text, lines, address; if(window.XMLHttpRequest) { // IE7+, Firefox, Chrome, Opera, Safari xhr = new XMLHttpRequest(); } else { // IE5, IE6 -…
asdf
  • 657
  • 1
  • 13
  • 30
0
votes
3 answers

javascript use response from function in calling function

I've got a basic example of of the node-geocoder, but I can't get the response to bubble up into the calling function var address = userUpdates.address + " " + userUpdates.city + ", " + userUpdates.state + " " + userUpdates.zip; …
Chris The DBA
  • 105
  • 1
  • 9
0
votes
0 answers

How can I construct a Sql query that matches all UK towns

I want to get query for all UK members of global database. I can use Ansi SQL and have regular expression support. It's not mine to modify so I can't create tables in it and it's too big to geocode SELECT login, location FROM GLOBALDATA …
HaveAGuess
  • 1,231
  • 1
  • 13
  • 23
0
votes
1 answer

Find a location with geocoder but only using city, not using street

for example: var city, country; geocoder.geocode( {'address': city + ', ' + country}, function(results, status) {} ); the problem is when the var city is wrong and is a random streetname (in a random city) he puts this location in results,…
0
votes
1 answer

Split geocoding task

I'm currently working on a project which needs to geocode locations stored in a mySQL database. I wrote a small script which imports a CSV into the mySQL database and automatically fills the longitude and latitude fields in each row with a…
The_Hegemon
  • 17
  • 1
  • 3
0
votes
1 answer

Modify global variable in Javascript inside geocode

I'm getting crazy with this. geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { latitude = results[0].geometry.location.lat(); longitude =…
user3592436
  • 461
  • 2
  • 4
  • 13
0
votes
1 answer

Callback with conditions crashing browsers (Javascript/google maps api)

I am trying to write a method which will take in some data and try to find the coordinates using the .geocode method from the google maps API. Due to the data not being completely correct some of the data will not be found and therefore will not…
user2572475
0
votes
0 answers

Javascript and Jquery problems with return value?

this is my code : $( document ).ready(function() { var geocoder = new google.maps.Geocoder(); var lat= true; var lng = true; function codeAddress(address) { geocoder.geocode( { 'address': address},…
Attila Naghi
  • 2,535
  • 6
  • 37
  • 59
0
votes
0 answers

Google geocode API returns location of motorway rather than postcode area supplied

I get the same result if I use the URL or javascript APIs. If I pass (as an address) the location "M5" for geocoding, rather than returning the location of the M5 Postal Area (Salford, Manchester) the location returned is the centre of the M5…
Tim Hurrell
  • 51
  • 1
  • 4
0
votes
1 answer

jQuery get Geolocation of Device?

Is there a way to use javascript, jquery, or any basic modern API to get the geolocation of a user via a typical web app? Typically I'm looking to see if devices have a standard way of making the current geographical position known, and if it's…
Orangeman555
  • 1,179
  • 2
  • 21
  • 45
0
votes
1 answer

JS Google Geocode - Finding Address from Longitude and Latitude

I have 3 variables longitude, latitude and address. var long = ##; var lat = ##; var address = ""; Can I convert the long and lat that I have into an address which I can save in the address variable? Thanks
mattmuirhead
  • 73
  • 1
  • 1
  • 11