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
3
votes
1 answer

Issue forward-geocoding multiple addresses

I am connecting to a remote web service which basically returns an XML back. I am then parsing that XML into a Property object (think real state sort of thing) But now, the web service returns a postal code for each property alone. It does not…
MrShoot
  • 843
  • 1
  • 9
  • 21
3
votes
2 answers

I am not able to store the returned value of a javaScript function (of Geocoding) in a variable

I am trying to store the latitude and longitude values I calculated inside the function. If I console.log both the values inside the function, it is working fine. However, if I return those values to use them somewhere else, then I cannot do so (it…
3
votes
3 answers

Convert lat/long to pixel X&Y co-ordinates

This type of question seems to have been asked numerous times but none of the solutions posted get me anywhere near the answer I need. I have this map of Northland, New Zealand and I'd like to map Lat/Long values to x/y (pixel) values on this image…
Iain
  • 33
  • 1
  • 4
3
votes
2 answers

google maps geocoder to return state

I am using google maps geocoder to geocode a zipcode and I want it to return the state that the zipcode is located in and store it in the variable "local". I am getting an error indicating that local is undefined. Why? see code below: var…
trs
  • 2,454
  • 13
  • 42
  • 61
3
votes
1 answer

Geocode address to county in R

I have a list of street addresses I would like to geocode to county. I am working in R. Simplified example follows. Unfortunately, due to the new Google API terms of service, you will need to have your own API key to run my code--it should not be…
David
  • 307
  • 1
  • 10
3
votes
1 answer

Why am I receiving a Recursion error with multiprocessing?

I'm looking to geocode a large list of addresses using multiprocessing. I have the following code: import multiprocessing import geocoder addresses = ['New York City, NY','Austin, TX', 'Los Angeles, CA', 'Boston, MA'] # and on and on def…
bms2202
  • 65
  • 5
3
votes
1 answer

jQuery: performing some action before form is submitted

I have a page with a single form on it. The form contains a text box and a submit button. When the form is submitted, either by clicking the button, or by pressing enter in the textbox, I want to do a lookup (in this case, geocoding a postcode using…
Saqib
  • 7,242
  • 7
  • 41
  • 55
3
votes
1 answer

Mapbox GeoCoder --> How to get nearby restaurants, hotels, shopping malls etc

I am using Mapbox Geocoder for searching places in our app. But, I also need to get all the nearby places like restaurants, hotels etc. Is it possible with Mapbox Geocoder? This is the code we are using for forward geocode, let region =…
Raju
  • 250
  • 1
  • 2
  • 16
3
votes
1 answer

find people within X miles of my city

I am working on a dating application in PHP: My application has a search page that searches suitable user profiles within certain distance of a person's location (need to specify the no. of miles/kms to search for). I understand the logic to…
Sunil Silumala
  • 917
  • 5
  • 22
3
votes
1 answer

Source = "dsk" not working for the geocode function in the ggmap library

The datasciencetoolkit.org has terminated its maps service from 12 feb'19. Anyone else experiencing the same issue? Moreover is there any other simple way to geocode locations in R as using GoogleAPI requires a billing account
3
votes
3 answers

Using Rx to Geocode an address in Bing Maps

I am learning to use the Rx extensions for a Silverlight 4 app I am working on. I created a sample app to nail down the process and I cannot get it to return anything. Here is the main code: private IObservable GetGPSCoordinates(string…
3
votes
2 answers

How to Change Mapbox Geocoder Search bar size?

I already added the geocode search tab. map.addControl(new MapboxGeocoder({ accessToken: mapboxgl.accessToken, bbox: [-74.390249, 40.414685, -73.519390, 40.976805] , zoom: 15,})); I also tried creating a variable called geocoder and through CSS…
user35131
  • 1,105
  • 6
  • 18
3
votes
1 answer

Cleaning Geocode Data

I've got a df just like this: df = data.frame(longitude = c('-235.969', '-23.596.244', '-2.359.186')) It´s an example of one column of geocode I'm trying to convert to something like this new_df =…
3
votes
2 answers

Class 'OSRef' not found

I'm fairly new to Laravel and PHP in general. I'm trying to use PHPCoord to convert Northing/Easting to Lat/Lng. I've installed it via Composer, and it appears in my composer.json file and vendor directory, but I don't know how to reference it in…
n8udd
  • 657
  • 1
  • 9
  • 30
3
votes
1 answer

In python, ValueError: No JSON object could be decoded

I'm trying to connect my code with google maps api(geocoding API) key. But when I run my code, the ValueError occurs. I don't know why. It might be silly, but please help me. Here's my python code. import httplib2 import json def…
Jinne
  • 41
  • 1
  • 7