geocode

placing multiple markers on google map from array

泪湿孤枕 提交于 2019-12-21 05:11:05
问题 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) function initialize() { geocoder = new google.maps.Geocoder(); latlang = geocoder.geocode( { 'address': 'New York City'}, function(results, status) { //use latlang to enter city instead of coordinates if (status == google.maps.GeocoderStatus.OK) { map

Geocoding 5000 addresses in php script

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 02:35:27
问题 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 them google will kick you off for the day. I was just wondering if there was any other way to geocode 5000 or so addresses, another service like google offers or something similar I could use? Or will I just have to stagger this? The problem is I

block until reverseGeocode has returned

一曲冷凌霜 提交于 2019-12-20 06:47:43
问题 I am trying to find a user's location from a coordinate to save into my database. To find the location name I am using reverseGeocode . However since it is a block method my self.locationName will return (and save as nil) into the database. So I have tried to find a solution to the problem, and tried to put together the following solution using semaphores to try and block until I get a locationName I can save, but the app just hangs when the save button is pressed. Should I even be going

R twitteR searchTwitter geocode warning/error

半世苍凉 提交于 2019-12-20 06:33:22
问题 I'm trying to pull tweets using the twitteR package, but I'm having an issue getting them through the searchTwitter function when I specify a geocode the way they have it in their docs. Please see code below: #Oauth code (successful authentication) keyword = "the" statuses = searchTwitter(keyword, n=100, lang="en",sinceID = NULL, geocode="39.312957, -76.618119, 10km",retryOnRateLimit=10) Code works perfectly when I leave out geocode="39.312957, -76.618119, 10km", , but when I include it, I

GMaps JS Geocode: Using/Passing Variables With Asynchronous Geocode Function?

为君一笑 提交于 2019-12-18 17:12:25
问题 I have an array list of location objects, and I am using some of them to build a full address, and then geocode that. Once I receive the OK status I am then placing a marker on the map. This all works fine. However, now I would also like to place an info window on each marker with another property from my array list, LocationName. Code is here: function placeMarkers(myObjList){ var geocoder = new google.maps.Geocoder(); for(var i=0; i<myObjList.length; i++){ var fullAddress = myObjList[i]

GMaps JS Geocode: Using/Passing Variables With Asynchronous Geocode Function?

試著忘記壹切 提交于 2019-12-18 17:10:05
问题 I have an array list of location objects, and I am using some of them to build a full address, and then geocode that. Once I receive the OK status I am then placing a marker on the map. This all works fine. However, now I would also like to place an info window on each marker with another property from my array list, LocationName. Code is here: function placeMarkers(myObjList){ var geocoder = new google.maps.Geocoder(); for(var i=0; i<myObjList.length; i++){ var fullAddress = myObjList[i]

Geocoder autocomplete in android

徘徊边缘 提交于 2019-12-18 12:24:25
问题 I've been googling my ass of trying to find someone that are having the same problem as me, without luck. So here's my problem: I'm trying to implement a autocomplete suggestion of addresses as the user types the name of a place using the geocoder in Android. I want this to behave much the same as the javascript version using a combbox. I am using a layout with an AutoCompleteTextView, and an arrayadapter to dynamically update the suggestionlist as the user types. I have added a 500ms delay

How do I do geocoding and routing with OpenStreetMap? [closed]

别等时光非礼了梦想. 提交于 2019-12-17 21:49:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Because Google Maps API is not available in Israel (see here) I want to use OpenStreetMap. I'm confused by all the different ways to do geocoding, i.e. finding lat,long for an address. I'm also looking for the best way to do routing, i.e. display a route between two locations, using OSM. I'm looking for

Android - How to get current location (latitude and longitude)?

亡梦爱人 提交于 2019-12-17 15:43:28
问题 I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude). Anyone knows why? package com.ram.currentlocation; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.widget.Toast; public class Location_Gps extends Activity { /** Called

Convert latitude and longitude coordinates to country name in R

穿精又带淫゛_ 提交于 2019-12-17 10:58:18
问题 I have a list of latitude and longitude coordinates, and wish to find out which country they all reside in. I modified an answer from this question about lat-long to US states, and have a working function, but I run into the problem that the worldHires map (from the mapdata package) is hideously out of date and contains a lot of obsolete countries such as Yugoslavia and the USSR. How would I modify this function to use a more modern package, such as rworldmap ? I have only managed to