geolocation

How to display my location on Google Maps for Android API v2

孤人 提交于 2019-11-28 16:10:53
I've looked high and low for an answer on this, and no one, in any forum question has been able to help. I've searched through the tutorials. The API Guide says: The My Location button appears in the top right corner of the screen only when the My Location layer is enabled. So I've been looking for this My Location layer and have been unable to find anything. How do I show my location on a Google Map? Yos233 The API Guide has it all wrong (really Google?). With Maps API v2 you do not need to enable a layer to show yourself, there is a simple call to the GoogleMaps instance you created with

Best node.js module for finding location? [closed]

那年仲夏 提交于 2019-11-28 15:58:22
I had found couple of node.js modules for finding the information about client location and network using ip address. Requirements: Location - country, city, state, latitude, longitude etc. Network - Internet service Provider, Internet connection type and internet speed etc. Data Accuracy - maximum possibility. Note: Looking for server side solution. The above mentioned modules uses maxmind data . And i had read about the maxmind data accuracy as well. I am little confused to choose the above node.js modules and i like to know is there any better node.js frameworks available for finding

How to draw path as I move starting from my current location using Google Maps

£可爱£侵袭症+ 提交于 2019-11-28 15:49:44
I am trying to draw route as I move from my current location. I am facing a big problem in drawing route dynamically please help me to solve it. I am having marker at my current location in my map. As soon as I start moving I want the map to start drawing lines in the path I move. I do not have two fixed points. Can any one please provide me a solution to over come this. I have seen lot of answers in SO which draws path between two fixed points. But here only my initial point is fixed. I am able to get my current location in my app currently. I tried with the following code but

Open alternatives to Google-maps?

爱⌒轻易说出口 提交于 2019-11-28 15:49:25
问题 I'm looking for an alternative to Google-maps with all the richness of their API but more open. Does such a thing exist? 回答1: OpenStreetMap is, of course, the obvious answer. There are various APIs for managing the data in the database, and there are various APIs for getting maps onto your webpages, such as OpenLayers, Mapstraction, or Staticmaps. 回答2: Google have recently introduced a limit of 25,000 map sessions per day, which forced us to consider the alternatives for some of our sites. We

Fused location provider doesn't seem to use GPS receiver

做~自己de王妃 提交于 2019-11-28 15:47:26
问题 Android 4.3 on Moto G, Android 4.4.2 on Nexus 7 2012, Android 4.4.2 on Nexus 5. Android Studio 0.4. I don't want to receive regular location updates, I just want an accurate location when the user presses a button. I have followed this example: https://developer.android.com/training/location/retrieve-current.html In manifest file: <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> I check that

Where can I get postal codes for all countries?

爱⌒轻易说出口 提交于 2019-11-28 15:39:54
问题 I once read about an open source database for postal codes with geolocation data but now I can't remember its name. Can someone help? 回答1: My guess is that your lost friend is GeoNames. 回答2: You're looking for an Open GIS database - the main keyword being "GIS". This will help you find results. The information you're looking for is usually Commercial grade (i.e. you need to pay for the data), but you can see what's available on the open-source GIS websites: http://www.osgeo.org/ http:/

Best IP to Country Database [closed]

爷,独闯天下 提交于 2019-11-28 15:28:29
We've got a requirement in a couple of our systems to detect a user's country based on their IP address. We'd prefer to use a database rather than a Web Service (to prevent issues with downtime/network access to an externally hosted service) so I'm looking for recommendations, anyone got any good or bad stories of the various IP to Country databases? What I've found from google: Paid Maxmind - $50, then $12 a month, site license IP2Location - $50 a year, single server software77 (Donationware) Free Maxmind Geolite ip2nation Any information on how the free ones compare to the paid ones would be

MongoDB with Mongoid in Rails - Geospatial Indexing

落爺英雄遲暮 提交于 2019-11-28 15:24:55
问题 MongoDB has a very nice Geospatial Indexing feature. How can I use it in Rails with Mongoid? 回答1: You can define geo indexes like this in mongoid class Item include Mongoid::Document field :loc, :type => Array index( [ [:loc, Mongo::GEO2D] ], background: true ) end And for queries $near command (without maxDistance) location = [80.24958300000003, 13.060422] items = Item.where(:loc => {"$near" => location}) $near command (with maxDistance) distance = 10 #km location = [80.24958300000003, 13

Obtain Latitude and Longitude from a GeoTIFF File

老子叫甜甜 提交于 2019-11-28 15:23:30
Using GDAL in Python, how do you get the latitude and longitude of a GeoTIFF file? GeoTIFF's do not appear to store any coordinate information. Instead, they store the XY Origin coordinates. However, the XY coordinates do not provide the latitude and longitude of the top left corner and bottom left corner. It appears I will need to do some math to solve this problem, but I don't have a clue on where to start. What procedure is required to have this performed? I know that the GetGeoTransform() method is important for this, however, I don't know what to do with it from there. fmark To get the

Google Map click marker by external link

此生再无相见时 提交于 2019-11-28 14:33:54
Google map, on click external link target marker. Find fiddle demo below. find fiddle demo google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); map.setZoom(9); map.setCenter(marker.getPosition()); } })(marker, i)); function triggerClick(i) { google.maps.event.trigger(markers[i],'click'); } <ul class="nav"> <li><a href="javascript:triggerClick(0)">location1</a></li> <li><a href="javascript:triggerClick(1)">location2</a></li> <li><a href="javascript:triggerClick(2)">location3</a></li> <li>