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

Using the Google Places API to get nearby cities for a given place

I am trying to write a Java application that, given a city and a radius, returns all the nearby cities. I thought the Google Maps API would be able to do this, but I am getting no luck with the Places API, it just returns points of interest (e.g.…
codd
  • 612
  • 1
  • 7
  • 15
11
votes
3 answers

How to extract tweet geocode in twitteR package in R

Recently Edwin Chen posted a great map of the regional usage of soda vs pop vs coke created from geocoded tweets inolving those words in the context of drinking. http://blog.echen.me/2012/07/06/soda-vs-pop-with-twitter/ He mentions that he used the…
iantist
  • 833
  • 2
  • 12
  • 27
10
votes
2 answers

Android: grpc failed on Nexus 5

I'm working with geocoder. On all devices the code works fine but on a Nexus 5 phone there is an exception in the logs. My code: override fun fromAddress(address: Address): Observable { val location =…
Laurens V
  • 551
  • 1
  • 7
  • 19
10
votes
4 answers

Google Maps API InfoWindow not Displaying content

My Code looks like this: var map = /*some google map - defined earlier in the code*/; var geocoder = new google.maps.Geocoder(); var address = 'Some Address, Some Street, Some Place'; geocoder.geocode({'address':address},function(results,status){ …
TomWilde
  • 248
  • 1
  • 2
  • 7
10
votes
2 answers

Obtain coordinates of a point on a road

I have a range defined by an intersection and a number of feet away from the intersection. (e.g. 100 ft north of Washington St. & 5th St. to 300 ft south of Washington St. & 6th St.) I am looking to geocode this into a lat/long pair. However, I…
David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
9
votes
2 answers

Stub out address geocoding during RSpec unit test

I'm using the geocoder gem to add geocoding functionality to one of my Active Record model classes. This works great, but I don't actually want the geocoding to fire during unit tests. I've tried stubbing out the call to geocode by adding this to my…
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
9
votes
1 answer

Geopy: retrieving country names in English

I am trying to reverse geocode coordinates and retrieve corresponding country codes using geopy. However, Geopy does not seem to provide a method for fetching country codes. So, I am trying to retrieve country names first, and then convert them to…
ApplePi
  • 93
  • 2
  • 4
9
votes
1 answer

How to increase mouseover “hit area” in polyline geomap

I'd like to show and hide a tooltip when mouseover / mouseout on the polyline path, the issue is that my polyline path has a stroke width 2 only, so is not easy to hit that area in the mouseover event, that's definitely inconvenient to user…
Shinoj
  • 811
  • 2
  • 8
  • 18
9
votes
2 answers

Geocode api map address in local language

I am newbie for the google apis. I was trying to get a full address for search keyword using this http://maps.googleapis.com/maps/api/geocode/json?address=surat&sensor=false using this I got the result like this { "results" : [ { …
Sohil Desai
  • 2,940
  • 5
  • 23
  • 35
8
votes
1 answer

How can I search places with specific types using Google Places API?

I am using google place api to search specific types like(gas_station,cafes,shopping_malls etc...) here is link i am using…
7
votes
5 answers

Geocoding 5000 addresses in php script

I'm looking to geocode over 5000 addresses at once in a PHP script (this will only ever be run once). I have been looking into google as a potential resource for doing just this, however I've read reports that after running 200 or so queries through…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
7
votes
1 answer

Getting coordinates based on city name google map

I am trying to create coordinates based on city with google maps, here is example what i have for now, i always get error? var address = 'Zurich, Ch'; var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': address },…
Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142
7
votes
2 answers

Geocoding API's response was not valid JSON. and request.location = nil

if Rails.env.development? @current_location_geo = Geocoder.search(request.remote_ip).first else @current_location_geo = request.location end if !@current_location_geo.nil? && @current_location_geo.ip == "127.0.0.1" …
Shefalee Chaudhary
  • 582
  • 12
  • 28
7
votes
2 answers

get 9 digit zip code from 5 digit zip code, programmatic, api

I have 5 digit zip codes, these are retrieved from Google Maps Api. My dilemma is that I have to connect to a remote database which also contains addresses. If the address does not exist in that database, I have to write it, if it does exist then I…
CQM
  • 42,592
  • 75
  • 224
  • 366
6
votes
2 answers

Google Maps API Geocode not returning results on passing postal code as a value to address param

On trying to search a particular address by postal code(2000) it does not return the expected formatted address correctly, but whereas on searching using the address(frederiksberg) instead of postal code it returns the expected formatted address…
Sreekrishnan
  • 179
  • 1
  • 3
1
2
3
50 51