geolocation

GeoJSON Coordinates?

痞子三分冷 提交于 2019-12-11 09:51:23
问题 I have a GeoJSON file that I am trying to process in order to draw some features on top of google maps. The problem, however, is that the coordinates are not in the conventional latitude/longitude representation, but rather some large six/seven figure numbers. Example: { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, "properties": { "OBJECTID": 1, "YR_BUILT": 1950.0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 772796.724674999713898, 2960766

Get IP geolocation using C# & WPF

 ̄綄美尐妖づ 提交于 2019-12-11 09:49:26
问题 I am doing a module which can display my city, state, latitude and longitude, using IP address of the device I am using. However, I can't get it right. Below, there is my code which I referred to another website: internal GeoLoc GetMyGeoLocation() { try { //create a request to geoiptool.com var request = WebRequest.Create(new Uri("http://geoiptool.com/data.php")) as HttpWebRequest; if (request != null) { //set the request user agent request.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0;

Sort users by distance from current user reactively in Meteor?

霸气de小男生 提交于 2019-12-11 09:35:19
问题 I have already been facing issues in meteor when dealing with reactive sorting of a publication according to various data. Every time, I never found a real answer to what I was trying to achieve and I ended up giving up and just deciding "not to build my app that way", which always makes me really sad. Now maybe I can phrase this problem simply enough that it could get a constructive and very interesting answer. I think it sounds like it should be possible to be done in a Meteor app, so here

Using an object property as the $maxDistance argument in a mongodb geolocation query

匆匆过客 提交于 2019-12-11 09:33:40
问题 I would like to write a $near query with a $maxDistance argument whose value is not constant. For example, I have a collection of fire stations with a location and a coverage radius, and I want to find all fire stations whose coverage radius includes some specific point. The coverage radius can vary by station. I have a collection full of documents that look like: { 'loc' : [-72,40], 'radius' : 10 } A query that looks something like: {'loc': { $near : coordinates, $maxDistance : 'radius'}};

How can I get a single marker to update it's position as the user moves?

久未见 提交于 2019-12-11 09:23:42
问题 I'm showing a map with a "Track my Position" button. It starts marking the user's position, but leaves a trail of markers as the user moves. How can I get a single marker to update it's position as the user moves? <script type="text/javascript"> $( document ).bind( "mobileinit", function() { $.mobile.allowCrossDomainPages = true; }); </script> <script src="../../jquery.mobile.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js? key=AIzaSyCvtEfhi11SeoL1Osfo8St53JRkasYnTRw

Point in polygon using geoPHP

帅比萌擦擦* 提交于 2019-12-11 09:19:09
问题 I want to check a point exists in a polygon or not using GEOPHP in Drupal. I have created the polygon and got the coordinates from http://www.birdtheme.org/useful/v3tool.html. $userLocation = geoPHP::load("POINT(77.600555 12.965416)","wkt"); $storeServingArea=geoPHP::load("POLYGON((77.569656 12.986159, 77.596779 12.993518, 77.622185 12.973780, 77.623215 12.954710, 77.608109 12.945676, 77.577896 12.945341, 77.565880 12.957386, 77.565193 12.976122, 77.568970 12.985824))","wkt"); var_dump(

How to write GPS coordinates to EXIF data on Android

寵の児 提交于 2019-12-11 09:18:06
问题 I'm trying to write a geotagging app where the user selects an image form the photo gallery, and then that image gets the current GPS coordinates written to it through its EXIF file. So far I am able to pull up the gallery, select an image, and find my current GPS coordinates, but I cannot write those coordinates to the EXIF file. Whenever I do select an image, I can view it, but no data is written to the EXIF file. I have looked up several examples for how to write to EXIF, and my code looks

BlackBerry Wi-Fi Location in OS 5

蹲街弑〆低调 提交于 2019-12-11 09:01:45
问题 I have successfully acquired Wi-Fi location in my BlackBerry App built on BlackBerry JRE 6.0 through the following code: BlackBerryCriteria myCriteria = new BlackBerryCriteria(LocationInfo.GEOLOCATION_MODE) I am now trying to compile the same App in BlackBerry JRE 5.0 However, LocationInfo is not part of BlackBerry 5 API and so I would require another mechanism. I have come to understand that GEOLOCATION_MODE_WLAN is available in BlackBerry 5 only through third party application. For example,

navigator.geolocation.getCurrentPosition not triggering in iOS simulator with React Native

佐手、 提交于 2019-12-11 08:58:41
问题 In Android emulators, the below code works fine but in iOS, it doesn't even step into navigator.geolocation.getCurrentPosition. I've updated my simulator's custom location through the debug menu but if it's not even getting into navigator.geolocation.getCurrentPosition I'm a bit lost. constructor(props) { super(props); this.state = { focusedLocation: { latitude: 37.4219999, longitude: -122.0862462, latitudeDelta: 0.0022, longitudeDelta: Dimensions.get("window").width / Dimensions.get("window"

Google Api is not giving location

泪湿孤枕 提交于 2019-12-11 08:36:35
问题 I am using google API to get location in my project. It gives location sometimes but most of the time it does not give any location. and from today it is giving server return an error 403 forbidden. When i am hitting the URL in my browser it is giving location. I am not using any key for my API can it cause this issue. Just to add- I get the lat and long from my api and then i get the location from google api and stores it in my database. What i am doing is:- public static string