geolocation

google places - Get a list of street addresses from a lat/long

白昼怎懂夜的黑 提交于 2019-12-10 17:09:40
问题 I need to be able to search for addresses within the radius of 500M-1000M from a lat-long. Google places seems to be able to do this and give it to me in JSON which is awesome, but it is only returning businesses and establishments. I want every postal address in this radius. I have tried adding: &types=street_address but it returns no results. Is this possible and has anyone got any info on how to do this. 回答1: Have you tried the Google Maps API Web Services - in the Viewport Biasing section

react native ios: geoloc has poor accuracy by default

和自甴很熟 提交于 2019-12-10 16:38:21
问题 I'm implementing a fitness tracker with navigator.geolocation.watchPosition and getCurrentPosition . It works fine on android and on ios emulator, have 5/10m accuracy, but on iphone 5s, I have a terrible accuracy (50/65). I found out that when I was running an existing fitness tracker at the same time (strava) on ios, suddenly my app was retrieving GPS coordinates with very good accuracy. So clearly I must be missing some configuration because by default my app does not use high accuracy on

Google Maps API v3 Geolocation not working in Google Chrome

China☆狼群 提交于 2019-12-10 16:23:20
问题 I'm using Google Maps API v3 Geolocation to get the users actual location. I found this post from Google Developers: https://developers.google.com/maps/documentation/javascript/examples/map-geolocation Here my code (equals to the code of Google Maps example): <head> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script> <script> // Note: This example requires that you consent to location sharing when // prompted by your browser. If you see a blank space instead of

Geolocations with javascript

爷,独闯天下 提交于 2019-12-10 14:45:00
问题 I'm working on a script to get the Geolocations (Lat, lon) that I can use to center my instance of google maps. For now i work with 2 possible technologies. One is the google.loader.ClientLocation object. I haven't tested this one yet because it returns null for me. I think because I'm not living on a regular location (Willemstad, Curacao using a wireless internet connection. So my modem is wireless.). Therefore I made a backup plan using navigator.geolocation . This works great in Chrome,

get 2 letter state/province abbreviation

时间秒杀一切 提交于 2019-12-10 14:01:39
问题 So I'm using the GeoNames API to get country and state/province information which I'm using to populate select dropdowns in a form. This form submits it's information to a SOAP web service and the SOAP Server only understands the country and state/province data in 2 letter form. ie. CA for Canada, US for United States. The GeoNames API provides this information for the different countries but not for their children (states/provinces). Does anyone know how to get the 2 letter abbreviation for

HTML5 Geolocation, ask for location?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:46:27
问题 Is it possible to ask for the user's permission to get their location on demand? It's usually asked when the page asks for the location, such as navigator.geolocation , but won't ask again until after the page has reloaded and the script asks for the location again. Is there anyway to have it ask on demand, ex.) after the user hits deny? 回答1: You have to either request location from another domain, or provide instructions on how to go into their browser and change their settings. Just like on

Open StreetMap Reverse Geocoding

寵の児 提交于 2019-12-10 13:16:05
问题 Does anyone know of any open source projects that will allow reverse geocode lookups over Open StreetMap data? I'd prefer not to use an existing hosted webservice such as Nominatim since my dataset is large. 回答1: You can install Nominatim on your own, it can do reverse geocoding pretty well. There is also a Nomiatim instance hosted by MapQuest with a less strict usage policy. 回答2: there is also Gisgraphy that use openstreetmap data and geonames. it got 5 web services (geocoding, reverse

Google maps api not placing marker at fine location

白昼怎懂夜的黑 提交于 2019-12-10 13:08:31
问题 My code is supposed to find out the users location and place a marker on the map upon entering the application. My location value always equals null, and never receives a value. if (location != null) { lat = (int) (location.getLatitude() * 1E6); longi = (int) (location.getLongitude() * 1E6); GeoPoint ourLocation = new GeoPoint(lat, longi); OverlayItem overlayItem = new OverlayItem(ourLocation, "AYO", "Whats good yo"); CustomPinpoint custom = new CustomPinpoint(d, CampusMap.this); custom

geoLocation.GetCurrentPosition always fails in IE 11

无人久伴 提交于 2019-12-10 12:41:39
问题 The script below works fine in FireFox and Chrome, but in Internet Explorer 11, it always fails (with POSITION_UNAVAILABLE). I have set the browser to allow requests for position, and I agree to the prompt the browser presents me when requesting permission. I'm almost certain that this worked fine a few months ago when I was last experimenting with it. What could I be missing as far as IE's settings? <script type="text/javascript"> $(document).ready(function () { if (Modernizr.geolocation) {

Google Geocoding - Cannot pull co-ordinates

末鹿安然 提交于 2019-12-10 12:33:26
问题 I've had some help on here and I have tried to frankenstine two pieces of code together to get the following result: User clicks Geocode button User is presented with the following information (Typed Address, City, State, Country, Co-ordinates) This is the code I've pieced together with a bit of help: http://jsfiddle.net/QA7Xr/25/ This is the full written code: var myLatlng = new google.maps.LatLng(31.272410, 0.190898); // INITALIZATION function initialize() { var mapOptions = { zoom: 4,