Questions tagged [geocoding]

1

votes
1

answer
154

Views

Failed loading cafile stream in “file_get_contents()”?

I was trying to get json data from google geocoding api. However the php warning shows some error about 'failed loading cafile stream' Here is my code: $apiKey = 'apikey'; $address = urlencode( '1600 Amphitheatre Pkwy, Mountain View, CA 94043' ); $url = 'https://maps.googleapis.com/maps/api/ge...
Jeff Yan
1

votes
1

answer
13

Views

GML coordinate into latitude and longitude CESIUM

I am using the following data NewYork that you can download at the bottom. I added the map to Cesium using './assets/map/NewYork/tileset.json' When I load cesium, I have the 3d building setup correctly, and at the accurate location. I used the function to get the long/lat when I click on a building...
Crocsx
0

votes
0

answer
3

Views

Mapbox GL JS - Highlight Country Polygon

I have a select2 option where a user can select a Continent, Region, Country, City or Airport. I integrated mapbox to add markers to the map on selecting a location. In case of Country and continent selection I would like to select the whole country/continent instead of just a marker. I tried using...
Omar Tanti
1

votes
0

answer
182

Views

Mapbox Geocoding custom address

I would like to add custom addresses to Mapbox Geocoding search bar, but I could not find any examples in Mapbox's official tutorials for that. I use my original codes (e.g. #abc1234) to point a corresponding coordinate (longitude, latitude) in my project. The coordinates are calculated from the cod...
thama
1

votes
1

answer
58

Views

Display Location with MapBox java-script SDK [duplicate]

This question already has an answer here: Using MapBox for Geolocation in html 2 answers How do I display location of an address on an HTML page using MapBox SDk forward Geo-Coding function. The SDK already does the query, but I need to be able to display the map and its location with a point on th...
lawal yemi
1

votes
1

answer
111

Views

Search via Geocoder gem with an existing google placeId for a location

I'm trying to search for a location, using an existing google PlaceId. It is referenced in the documentation to pass the param: google_place_id: true require 'geocoder' Geocoder.search('ChIJLU7jZClu5kcR4PcOOO6p3I0', params: {google_place_id: true}) https://github.com/alexreisner/geocoder#google-goog...
Sam Watson
1

votes
0

answer
518

Views

How to get address in English language only using GMSGeocoder

I am using GMSGeocoder in my iOS app. And also I am using multiple languages(say English, Arabic). While using Arabic language I am getting an address in Arabic language. But I want to get the address in English language only. For this I used geocoder.accessibilityLanguage = 'en-US'. but it didn't...
amma teja
1

votes
0

answer
169

Views

How to resolve error “reverse geo fail” in Android Studio

My phone xiaomi redmi note 2, have a lollipop operating system (API 21). How to take the coordinates of my points and translate them to the corresponding address? Why in my gadget can not run and error 'reverse geo fail' appears, but in other gadgets run very well. I have minSdkVersion 21 in settin...
dyan tb
1

votes
0

answer
277

Views

How do I search mapbox geocoder via poi categories?(fuel/gas stations/restaurant)

I been adding mapbox to my app and I got the geocoder to search using auto complete. I can't figure how to search categories tho. Is that feature not yet available? The API documents show it as 'preview' and I also found this link. https://github.com/mapbox/MapboxGeocoder.swift/issues/119 This w...
james burnison
1

votes
1

answer
369

Views

How do you use coordinates to find location on map android

I am building a map in Java using Google Api Services. Currently my map takes in an address then finds and marks the location on my map. I would like it to be able to take in coordinates and find the location of those coordinates and mark that as well but havent had any luck finding documentation sh...
Mystic Developer
1

votes
0

answer
38

Views

Geocoding with Google API c#

I need to get coordinates from an address, here is function for this: public static string getCoordonneesAdresse(string adresse) { var requestUri = string.Format('http://maps.googleapis.com/maps/api/geocode/xml?address={0}&sensor=false', Uri.EscapeDataString(adresse)); var request = WebRequest.Crea...
Zeyukan Ich'
1

votes
0

answer
90

Views

Python requests API - Only one result displayed , two expected

I am working on a python script that exctract latitude and longitude from Google maps API (Geocode). Here is my code : import requests import time import MysqlConnect import addslashes GOOGLE_MAPS_API_URL = 'https://maps.googleapis.com/maps/api/geocode/json?' #Selecting datas from DB MysqlConnect...
1

votes
0

answer
38

Views

How to get the distance between two postal codes

Is it possible to get the distance between two postal codes for free? I tried to google the answer but all I found is Google Maps API key which requires contacting sales or things like that. Its feel a bit overkill to make billing accounts to Google just for getting the distance between two postal c...
Carolina Smith
1

votes
0

answer
27

Views

Using google geoCode occasionally returns ZERO_RESULT

I am calling https://maps.googleapis.com/maps/api/geocode/json?address=37.5,-77.5&key= to get the actual address from long/lat for a coordinate. However, it seems that google occasionally sends me {'results':[],'status':'ZERO_RESULTS'} What are some of the reasons that this may occur? In this parti...
Zhen Liu
1

votes
1

answer
268

Views

printing function output to csv in python

I am a beginner in Python and i need to export my function output in csv/xlsx format. Please see my code. I need to print my output of pixel2coord function to csv. Thanks from osgeo import gdal # Open raster file ds = gdal.Open('C:\\Users\\ADMIN\\Desktop\\datanew\\ndvi_alig_landsat_clipped.img') # G...
user123098
1

votes
0

answer
282

Views

Track user live location using latitude/longitude from firebase

so i've been using firebase for a few months now. I able to implement all the CRUD operations with ease. I am currently working on an app that has an Uber like car tracking animation. My current module is able to take an 'Origin' and 'Destination' using google maps API and display a cool animation o...
Malcolm Maima
1

votes
1

answer
63

Views

Google geocoding returns response in an unexpected language

I have a question about google geocoding API. For example, when I send link, where language=uk, I receive such response. As we can see, we have 5 result objects there. The fourth object contains information about country and region in the Ukrainian language. The third object contains information ab...
Bohdan
1

votes
1

answer
171

Views

Why do I get very inconsistent Google Geocode API results?

I have a list of a few thousand locations for which I need to find the coordinates. I'm using Google Geocode API for this. The information I have is something like 'USA, California, Napa Valley' So my Geocode call would look something like this: https://maps.googleapis.com/maps/api/geocode/json?addr...
Radu Murzea
1

votes
0

answer
337

Views

Get the building height from the Google MAP API

I want to build a website which has a Google MAP which shows a 3D visualization of buildings on it. Is there a way so I can highlights building within a given radius? Also, I want some information about my chosen point. like The height of a building within a radius of the chosen point Area of a buil...
E-DEV
1

votes
0

answer
65

Views

Why Google reverse geocoding stops working if I add data to Firestore - NodeJS

I use reverseGeocoding on server-side hosted by Firebase. If I want to add data to Firestore right after receiving a response from reverseGeocode, it's not working anymore. Code is ignored and no error is thrown. googleMapsClient.reverseGeocode({ latlng: [-33.8571965, 151.2151398], }) .asPromise() ....
Cedric
1

votes
1

answer
446

Views

Google Batch Geocoding API

I am using Google Geocoding API to conduct both forward and reverse geocoding work in my projects. While this API is only working for a single address or a single pair of geo coordinates per request, not for batch processing. I know I can copy and paste lines of addresses up to 250 to the Batch Geo...
blueshell
1

votes
0

answer
187

Views

Python assign time, latitude & longitude to `Dimensions` of xarray.DataSet from netcdf file

1. I need to assign time as a Dimension to the xarray.DataSet object 2. I need to assign lat/lon as a Dimension I have downloaded vegetation health data from the NOAA FTP service here. The help documentation is here. There are 2030 weekly files so any help doing this in parallel is very much appreci...
Tommy Lees
1

votes
0

answer
147

Views

How to do Reverse geocoding using AgmMap?

How to do Reverse geocoding using AgmMaps? Getting Street Address using latitude and longitude? what should be imported and what should be the function code?? appmodule.ts import { AgmCoreModule } from '@agm/core'; imports: [ AgmCoreModule.forRoot({ apiKey: 'apikey', }), ] app.Component.css ag...
J. Deo
1

votes
1

answer
169

Views

How to create new A-FRAME objects/primitives, from a JSON data file?

Using A-FRAME how can you use the data from a Json file and create the new objects / primitives to function as POIS? ****EXEMPLO JSON:**** (https://leafletjs.com/examples/geojson/sample-geojson.js) var lightRailStop = { 'type': 'FeatureCollection', 'features': [ { 'type': 'Feature', 'properties': {...
Miguel Nunes
1

votes
1

answer
212

Views

Google geocoding api OVER_QUERY_LIMIT occurs after 5 requests

I have implemented the Geocoding api provided by google few months ago. I am currently facing a problem where I am only able to request 1-5 times per day and after that I get this error. This is my request URL: https://maps.googleapis.com/maps/api/geocode/json?&latlng=12.9857325553894,77.59687542915...
Amogh Shettigar
1

votes
1

answer
73

Views

Is there a way to return a full formatted address using map quest api?

I'm using MapQuest's GeoCoding API for a weather app I'm creating (this is due to having many complications using google's API), and the response returns each aspect of the address as a separate value, however unlike Google's API, there does not seem to be a value that returns the full formatted add...
Sam
1

votes
1

answer
75

Views

Autocomplete vs. Geocoder APIs - Different Results

While working on address autocomplete demo and batch address validation feature for our multi country project, I've noticed there are differences in results for the same search text. For instance, the address string VIA KENNEDY 11, 24020 TORRE BOLDONE (in Italy), on Here maps and HERE geocoder autoc...
Bartosz
1

votes
1

answer
151

Views

Geo-coding for intersection street using Python

Does anyone know how to get latitude and longitude of an intersection of 2 roads given 2 roads address by and Map API like Google map API? I currently find a solution for Python such as from geopy. Thank you!
Ngoc Cao
1

votes
0

answer
113

Views

How to set API key in ColdFusion for Google Maps geocoding

Since Google requires recently to add your key to API uses, I have a problem to get it run on a script that was calculating distances properly before. In my code I have this: so if I add the API key like this (according to official documentation): ColdFusion is telling me there is an error: Element...
ITfee
1

votes
1

answer
313

Views

Geocoding with java API

I am using Nominatim java api for nomitim to get longitude and latitude attributes for given address:https://github.com/AtlisInc/Nominatim-API. For every different input longitude and latitude outputs are being same.For latitude = 51.3258094 and for longitude = 11.3400106. What am I doing wrong? Her...
J.Doe
1

votes
0

answer
430

Views

Geopy: OSError: [Errno 101] Network is unreachable

I'm using Geopy library to convert a list of English name locations to latitude and longitude. However, halfway through the execution, the program raised an error: OSError: [Errno 101] Network is unreachable. I was wondering if there's related to my code or it's simply the network error? My code: fr...
Danni
1

votes
1

answer
77

Views

Google Geocode API: same address, different coordinates

I'm using the Google Geocoding API, and I've come to this situation: The same address giving two different Latitude points. The two strings are(without quotes) : 'BRAZIL CARIACICA PADRE MATHIAS ROD GOVERNADOR MARIO COVAS 0KM 281,3 1941' 'BRAZIL CARIACICA PADRE MATHIAS RODOVIA GOVERNADOR MARIO COV...
georgitolstov
1

votes
1

answer
95

Views

Wrong Error Message - Here Geocode API - InvalidCredentials

I have a list of addresses which need to be translated to coordinates and Here Geocode API stopped in the middle of the list and returned 'InvalidCredentials'/'PermissionError' which was wrong since my credential is valid. The full Error message below: invalid credentials for Then I check my reque...
Jeff Lin
1

votes
3

answer
174

Views

How to avoid abuse of server side calls to Google Geocoding API [closed]

In a project, the users generate a lot of calls to the Google Maps Geocoding API that go beyond the free quota limits. In order to reduce costs I recently changed the code so the user makes server side calls to the Google Maps Geocoding API through my server, which then in return are cached to avoid...
Eric Lehmann
1

votes
1

answer
85

Views

How to extract zip code values from react-geosuggest?

Short description I am trying to capture the City, State, & Zipcode value from the results provided by the onSuggestSelect prop using the npm react-geosuggest component. You can find info about it here: https://www.npmjs.com/package/react-geosuggest Expected results I created a handler to process th...
lopezdp
1

votes
0

answer
34

Views

How to correctly take GoogleMaps coordinates and post them to a Webhook using python 3 and json?

GEOCODING AND POSTING JSON FILES TO A WEBHOOK To begin with, my assignment is automated program that allows the user to enter in an address and returns the lat and long with googlemaps API (basically geocoding), then the program posts the coordinates to a webhook in json format on a website called D...
manny_22
1

votes
0

answer
23

Views

Map with clickable polygons to extract properties and fill a table column using HTML/CSS

I'm not experienced in coding... I created an interactive map from mapbox with a vector file from a tileset. In adition to that i added a slidebar in the left side of the map and inside of the slidebar a table. With a POPOUT when i click a 'CROP FIELD'... lIKE THIS: Locator body { color:#404040;...
Leana Matos
1

votes
0

answer
28

Views

opendatacube ingestion of a Sentinel3 product

I would like to ingest a Sentinel 3 OLCI Level 2 product so I'm trying to make the 'prepare_dataset.py' script. I can't get the 'grid_spatial/projection' details, particularly 'geo_ref_points'. I've tried to use RasterIO, as recommended here, but when I load the '.nc' file of a band I have a 'NotGeo...
Liliana Martirano
1

votes
0

answer
58

Views

Is Android Geocoder using Google's Geocoding API?

I'm using this Android Geocoder class and I was wondering if this is using the Google Geocoding API behind the scenes. This is what the documentation says: The Geocoder class requires a backend service that is not included in the core android framework.The Geocoder query methods will return an empty...
Diego Laballos
1

votes
1

answer
140

Views

Getting connection timed out error while GeoCoding in R

I have to geocode few addresses in R but getting a 'Timeout was reached: Connection timed out after 10000 milliseconds' error. I am behind office firewall so tried to use proxy as well but still getting the same error. This works when I use source as 'dsk' but it doesn't geocode most of the addresse...
IMK

View additional questions