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
6
votes
2 answers

Python Pandas 'apply' returns series; can't convert to dataframe

OK, I'm at half-wit's end. I'm geocoding a dataframe with geopy. I've written a simple function to take an input - country name - and return the latitude and longitude. I use apply to run the function and it returns a Pandas series object. I can't…
Harvey
  • 617
  • 8
  • 18
5
votes
1 answer

Geocode + Autocomplete + Rails

I am reading RailsCast #102 on AutoCompelte, however this describes how to do stuff with a .json file, however if I'm using something like Geocode it doesn't have such a thing since it's calling information from Google Maps. I have found many guides…
eWizardII
  • 1,916
  • 4
  • 32
  • 55
5
votes
4 answers

Find nearest location coordinates in Land using python

A geocode api returns no location information for coordinates in ocean/sea. For those records, I would like to find the nearest possible coordinates that has a valid location information (that is closest land coordinates) Below is the code for…
Gang Gang
  • 63
  • 2
  • 6
5
votes
1 answer

R geocode query error when address has hash

An address containing a "#" (for example an apartment number) frequently gives an incorrect location result, both with ggmap::geocode and with google maps as well, so this is not strictly an R question. In this example, adding a "#3" after the…
Robert McDonald
  • 1,250
  • 1
  • 12
  • 20
5
votes
2 answers

Swift 3 private access?

I am trying to convert the location address to coordinates and open it inside the maps app, but I am getting this error when the function is called. [Client] Geocode error: . That is the only thing printed inside the console. @IBAction…
manatee
  • 185
  • 1
  • 10
5
votes
1 answer

Geopy ValueError "Didn't find exactly one match" when geocoding

In Django, I have been trying to get a search field to geocode a location and spit out a list from my db sorted by distance. So far everything works except when I search for a location that Google returns multiple results form such as "ann arbor,…
bcoop713
  • 1,063
  • 5
  • 13
  • 24
5
votes
1 answer

placing multiple markers on google map from array

I'm trying to place multiple markers on a map that are provided from an array. Right now only my initial point loads (NYC). var geocoder; var map; var markersArray = []; //plot initial point using geocode instead of coordinates (works just fine) …
user1104854
  • 2,137
  • 12
  • 51
  • 74
5
votes
0 answers

App Engine Datastore won't save the LatLng (Google Maps) value

My website (with python/django on the server side) receives user input of Latlng (Google Maps API 2) geocode and stores it into/ retrieves it from the Google Appengine Datastore. c = myplace.MyPlace( geo_point = latlng, …
Jason O.
  • 3,168
  • 6
  • 33
  • 72
4
votes
5 answers

How to serialize and deserialize a JSON object from Google geocode using Java

I am working with Google Geocode responses, which are in JSON. The JSON format is as follows: { "status": "OK", "results": [ { "types": [ "street_address" ], "formatted_address": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA", …
hook38
  • 3,899
  • 4
  • 32
  • 52
4
votes
3 answers

What counts as a Geocode?

I'm working on an app that involves the Google Maps API and I'm worrying about the 2500 daily geocode limit. It's not clearly defined to me on what counts as a geocode though. For example: I can get my current location from my GPS, but when I…
telkins
  • 10,440
  • 8
  • 52
  • 79
4
votes
0 answers

How to get city state and country using zip code from geocode api

I am facing issue regarding geocoding, whenever I put zip code in my text field its only fetch me city state and country of USA. When I put any other zip code it is not working. I think there is issue regarding my script source . Can anybody help…
Ahsan Bilal
  • 59
  • 1
  • 3
4
votes
1 answer

How to use docker container and geopy to avoid timeout problem with nominatim?

I am trying to run the following code to perform a geocode using the geopy package. import geopandas as gpd import pandas as pd import os from time import sleep from geopy.geocoders import Nominatim end = pd.read_csv…
Heavy Hammer
  • 291
  • 3
  • 11
4
votes
2 answers

Geocode IP addresses in R

I have made this short code to automate geocoding of IP addresses by using the freegeoip.net (15,000 queries per hour by default; excellent service!): > library(RCurl) Loading required package: bitops > ip.lst =…
Tom Hengl
  • 166
  • 8
4
votes
2 answers

Offline OSM and R

I would like to have openstreetmap with offline capabilities. Specifically, I would like to know if it is possible (which I think it is) to geocode a certain adress without using an API. The reason for this is simple, if I have hundreds of thousands…
4
votes
5 answers

Geocoder doesn't always return a value

I am able to successfully get lat/long and pass it to the geocoder to get an Address. However, I don't always get an address back. Seems like it takes a couple of attempts? I'm not sure why. Is there a better way for me to obtain the address at…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
1 2
3
50 51