Questions tagged [geocoding]

0

votes
0

answer
2

Views

Geoxml3 Shows Unable to retrieve Kml file

i went through lots of answers posted regarding the below question. i wanted to retrieve the kml file from the local and so i used geoxml var myParser = new geoXML3.parser({ map: map }); myParser.parse('indiastatev2.kml'); here is the code which i am trying to make work my file is stored here in th...
Ronak Shethia
1

votes
2

answer
333

Views

Converting CLLocationCoordinate2d to Street Address with Swift

Im trying to convert CLLocationCoordinates2d coordinates to a physical street address. I have tried CLGeocoder with no luck. Here is my code that supplies the latitude and longitude coordinates. let manager = CLLocationManager() func locationManager(_ manager: CLLocationManager, didUpdateLocations l...
klykins
0

votes
0

answer
3

Views

Executing Python Script in Django View [Upload CSV -> Batch Geocoding -> Show Link to Download by script generated CSV]

I found the following very useful script while Googleing: https://github.com/shanealynn/python_batch_geocode/blob/master/python_batch_geocoding.py This script is just what I need and it works flawlessly when I run it locally on my computer. I have a small Django site, where I would like to use this...
Tim
1

votes
1

answer
435

Views

Google Map API: How to manage different “address_components” in gecoding results?

Consider below JSON response of google map gecoding response. It consists of an array of address_components with five elements. Usually developer use its first item (item with index 0) to find address elements such ac route and locality and formatted address. But this is not the best alternative. F...
VSB
1

votes
3

answer
817

Views

GIS data files converting each address to lat/lon in dbf shape data

I need Lat/LON from GIS data I have data files from http://www.mngeo.state.mn.us/chouse/land_own_property.html given in the format of .dbf, .prj, .sbn, .sbx, .shp, and .shx in the .dbf I see PIN, Shape_area, Shape_len PARC_CODE Parcel Polygon to Parcel Point numeric 2 and PIN Relationship Co...
morty346
1

votes
2

answer
1.3k

Views

Geocoding services : which can be used with JAVA web applications as reliable

As this is a very old thread to be asked a question. But as I am having same confusion on what geocoding services can be best proved. I am working on Java based web application where I need to following features to be implemented geocode the address perform reverse geocoding Show Route on maps Calcu...
sbhatt
1

votes
1

answer
1.7k

Views

Reverse geocode in Google docs

I am trying to get countries and cities from Geocodes location (i.e.: 51.5665,-1.2410) in a Google Spreadsheet. I found a code to get Latitude and Longitude from a city with the country but I cannot manage to change it to use the reverse function. function onOpen() { // Add the Geocode menu Spreads...
aflaisler
1

votes
3

answer
4.9k

Views

How to use Viewport from Google Geocoder in Leaflet JS?

I have successfully set up a Leaflet JS map that uses the Google maps geocoder to pan to a geocoded address. But I am also trying to use "map.fitBounds" to get the appropriate zoom level from the Viewport, but it does not seem to be working. The code I am using is: map.panTo([results[0].geometry.l...
user1836786
1

votes
1

answer
1.7k

Views

How to get the User's City and Country in Iphone in English

I am using the following code to get the user's city and country in Iphone. CLLocation *location = // Some location [[[CLGeocoder alloc] init] reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {}]; It works but the problem is that it returns the values in a spe...
user960567
1

votes
1

answer
214

Views

Idea or tool for distribution of power force (people) geographically [closed]

I have a lot of places with coordinates, I have people that maintain those places when something goes wrong. I'm looking for a way to place the field people so they be the closest possible to the major amount of sites. The idea is something like: I have 3000 sites with lat&long. I want to choose how...
Alejandro
1

votes
2

answer
1.3k

Views

Proximity search based on Latitude and Longitude

I am making a market type application, in which users enter product details and product address, now I Geocode this address into latitude and longitude using Google Geodcoder and further I process this information into MySql Database. The proximity search is working flawless if I provide a user defi...
Heretic Monk
1

votes
1

answer
1.7k

Views

Parsing Google Maps API GeoCode - server side or client side?

With this url: http://maps.googleapis.com/maps/api/geocode/json?latlng=31.376356,34.811039&sensor=false I can obtain the type of the location (road, street etc.). Is there any other solution? If I use on server side, it's going to consume the company queries, right? If so, doing it on client side co...
Idan Moshe
1

votes
1

answer
313

Views

Android Geocode Lag Issue

Whenever I use reverse-geocoding with the Geocode class to get the current city name the whole user interface freezes for a moment until a response is returned. How do I avoid this problem?
joe dacoolguy
1

votes
1

answer
3.6k

Views

Google geocoding API setup finding the correct ClientID and Secret

I am building a java web application that requires googles geocoding service as defined on https://developers.google.com/maps/documentation/geocoding/ . My application is all setup and everything works, I am now attempting to sign my requests to allow for additional features from the API such as add...
ug_
1

votes
2

answer
983

Views

Are Google and Yandex maps similar?

I heard that Google Maps coordinates are not compatible with Yandex map coordinates. Is it true? Can I use same coords for both map apps?
Yarh
1

votes
1

answer
356

Views

How to calculate geospatial distances from a collection with lat+long info?

I have a collection of lat+long values. In a given moment a new point (lat+long) is passed to application. At this moment, application should return the distances from this point to those values stored in the collection. Application should also be able to filter all those values that are within a gi...
blackjack
1

votes
1

answer
923

Views

Remove Country and just show Town?City in Google Geocoding API

I've managed to get the users location into an input field but having difficulty editing the address string that shows up. At the moment you'll see HERE Thant it shows Town and Country when I just want it to show Town. This is the section of script for reference: request.open(method, url, async); r...
user3004753
1

votes
2

answer
717

Views

Reverse geocoding from given coordinates (not current location, but manually provided)

I am fetching GPS information of all my images and they are stored in a Dictionary. I would pass on the lat & long values from this dictionary to the reverseGeocodeLocation function call & store the results in my database. The problem here is that this function is an asynchronous call & I need to sy...
Ankit Malhotra
1

votes
1

answer
1.1k

Views

Trying to geocode with geopandas - AttributeError: 'module' object has no attribute 'Nominatim'

I'm trying to fix an error I have when I try to use the geocode function in geopandas. from geopandas.geocode import geocode df['latlong'] = geocode(df.Location, provider="mapquest") This is what I see: /Users/.../lib/python2.7/site-packages/geopandas-0.1.0.dev_- py2.7.egg/geopandas/geocode.pyc i...
elksie5000
1

votes
3

answer
340

Views

Using the appropriate function from the 'apply' family when batch geocoding in R

Objective: Pass R a single vector of street addresses and have a three-vector dataframe returned where the first vector is the street address ("Street.Address"), the second vector is the latitude ("Lat"), and the third vector is the longitude ("Lng"). For simplicity, I'm only using four addresses; t...
Uncle Milton
1

votes
1

answer
1.2k

Views

geocode a marker in Google Maps

I was roaming on this site for any info on geocoding a marker. However, I have tried some of the answers but I did not manage to make it work (I am an amateur when it comes to coding), so could someone please help me with the geocoding of my marker? Apparantly, the marker is missing when using this...
user3415749
1

votes
1

answer
1.2k

Views

Calculating the distance between two postcodes using OSRM

I've been looking at OSRM for distance calculations and essentially have the following query which does a distance calculation between two postcodes in the UK. http://maps.googleapis.com/maps/api/distancematrix/json?origins=KY3%200RS&destinations=DD3%209LE&sensor=false&units=imperial The server API...
jmood
1

votes
1

answer
848

Views

CLLocation, geocoder and region search

I have problem with narrowing the Geocoder result. Here is my code: CLLocationCoordinate2D centerLocation = CLLocationCoordinate2DMake(53, 10); CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter: centerLocation radius:100 identifier:@"de"]; [self.geocoder geocodeAddressString:[NSSt...
Jakub
1

votes
3

answer
2.6k

Views

Allow floats to be null values in mySQL

I'm having a problem with my geocoding script where it inserts null values into the mySQL database and breaking my script because my coord_lat column cannot be null. When I take a look at my structure, it tells me that null values are allowed. Can anyone give me a suggestion on how to fix this? Than...
chronotrigga
1

votes
2

answer
484

Views

Options to create a reverse geocode system using OpenStreetMap

I need to create a local reverse geocode service for my specific country using open source maps. My first option is OpenStreetMap so I downloaded my country PBF file. Can anyone give any idea on how to start using this data? or other options?
ericpap
1

votes
1

answer
849

Views

Showing content from an Array inside infowindow on marker click

i got an api endpoint that returns an array of addresses and some price information for the addresses but it doesn't return lat/lang, so i am using geocode to show the marker for the addresses on the map and showing infowindow on each marker click. Now i want the content of infowindow to be the pric...
kam bajwa
1

votes
1

answer
606

Views

Distance Between Two Geo Coordinates

I am just starting to work with spatial data in SQL Server (2008 r2). I am looking to calculate the distance between two coordinates (miles). DECLARE @source geography DECLARE @target geography SET @source = geography::STGeomFromText('POINT (43.420026 -83.974472)', 4326); SET @target = geography:...
Steve Salowitz
1

votes
1

answer
572

Views

iOS how can I turn Address into GPS coordinate (geocoding) in 2015?

I'm looking at the documentation of classes that come with Google Maps for iOS and see that it allows for GPS to Address conversion (Reverse Geocoding with GMSGeocoder). There's also a GMSPlacePicker for manual place picking, however, I don't see anything about regular geocoding. How can I perform p...
Alex Stone
1

votes
1

answer
588

Views

How can I get Chinese words using Google API with JSON?

I'm using the following link. But, the result is not Chinese. My server is Amazon Web Services (AWS).
xuran.li
1

votes
2

answer
465

Views

Google Geocoder different results between url and javascript requests

I'm using component filtering with Google Geocoding to get data about a location. First I'm calling this link with a mispelled 'London' as 'Lindon' and nothing is returned. GOOD, I don't want it to find anything! http://maps.googleapis.com/maps/api/geocode/xml?components=locality:Lindon%7Ccountry:gb...
user1186050
0

votes
0

answer
3

Views

Cheap location feature api in android app

I am developing an location based android app like getting user location automatically, getting nearby users in 1 km, 2 km radius,etc, or manually searching and selecting places nearby. I researched and found that location api have to be used for these features but the thing is the apis have their o...
Rahmat Ullah
1

votes
1

answer
1.9k

Views

API call works in browser but not curl/wget

I'm wanting to use the Mapquest geocoding API. Opening this URL in a browser returns XML containing results: http://open.mapquestapi.com/nominatim/v1/search?format=xml&q=Wangaratta But trying it on the command line returns nothing useful: $ curl http://open.mapquestapi.com/nominatim/v1/search?format...
Steve Bennett
3

votes
1

answer
11k

Views

Google Geocoding API returns ZERO_RESULTS for web-normalized address

I've seen several questions about getting ZERO_RESULTS for addresses that the user believes to be correct, which were resolved by correcting usage errors (e.g. failure to urlencode the address), or by tweaking the address to a form that google expects (e.g. spelling out "street" instead of using the...
sootsnoot
1

votes
2

answer
2.1k

Views

Google Geocoding API only works for one word address

Google geocoding api is working fantastically if I use only one word like Sydney But if I use: Sydney, Australia It doesn't work it says: Warning: file_get_contents(https://maps.google.com/maps/api/geocode/json?address=sydney, Australia&sensor=false): failed to open stream: HTTP request failed!...
Anonymous
1

votes
3

answer
2.4k

Views

Google Geocoding XML response removes apartment/suite numbers

When using the Geocode API it seems that any embedded apartment or suite number in the original address is removed in the XML response. This makes it impossible to use the returned address as a "corrected" or "standardized" format to save. Is there a way to preserve the address information? Secondl...
1

votes
2

answer
6.6k

Views

[Android][Google Maps]: Get the Address of location on touch

I have been googling this for hours but no luck so far. I want to get the address of the location where the map is touched / tapped. I understand that in order to get the address i need to reverse geocode the coordinates. But how do i get the coordinates from the map in the first place?
Kaarel Purde
2

votes
1

answer
5.1k

Views

Call Google Geocoding API method synchronouslly

I need to know marker's address when I change markers postition. Basically I have a method: function addNewMarker(latLng) { geocoder.geocode({'latLng': latLng}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { if (results[0]) { var address = results[0].formatted_address; va...
vale4674
2

votes
1

answer
707

Views

What geographical database does Facebook use?

I'm working on an auto-complete input field somewhat similar to the one on Facebook where you start typing a city and suggestions appear. I have been testing Geonames but it's not as precise as Facebook.. and Google's geocoding API can be used only with a map which I don't need. Does anyone know wh...
CyberJunkie
1

votes
2

answer
1k

Views

Reverse geocoding android pricing

If someone could help me. Is using geocoder free for android, currently i'm only using google maps. I see that it says that its only 2500 requests per day. Or is this only for web and something entirely different from mobile? I am using the following code to get a zip code with a latitude and longit...
huey77
3

votes
2

answer
24.8k

Views

get formatted_address from google maps api json

I want to get the formatted_adress from the json array. an example link could be http://maps.googleapis.com/maps/api/geocode/json?latlng=55.397563, 10.39870099999996&sensor=false var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng="+latlng+"&sensor=false"; $.getJSON(url, function(data...
lizart

View additional questions