geolocation

Solutions for finding website visitor's geolocation

此生再无相见时 提交于 2019-12-06 06:01:25
I am aware that there are many services which provide geolocation tools for working out where users are visiting from. The website I'm working on is an e-commerce site which runs in multi-territories. When a visitor hits the website it should work out where they are from and show the relevant currency/language for the user. In the past we have used maxmind but I'm wondering if there are better solutions out there. I'm calling out to developers with experience in this area to share their knowledge and expertise on what's available and what the pro's and con's are of various solutions.

Good php API for extracting country code from IP? [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-06 05:56:05
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 3 years ago . I'm wondering has anyone had any experience in doing a whois on an IP and extracting the country code from that IP? Wondering what api would be the cleanest way of doing this with php. Have a look at the MaxMind GeoIP database . They have a PHP API . You can use my service, the http://ipinfo.io API for this: Assuming you want all of the details, you can use PHP's json_decode to parse the response: function ip

Location and distance calculation using Wifi in android

核能气质少年 提交于 2019-12-06 05:52:49
问题 How to get the distance of our mobile device from a wifi hotspot kept inside a building? This is basically for navigational purposes inside the building.. Any help would be appreciated. 回答1: If you want to use WiFi for indoor location (step 1 before navigation), then distance to the WiFi Access Points is not the correct approach. Instead use RSSI. With Android you would need to take WiFi fingerprint of a building by moving around every few meters and sample the RSSI strength. You need to

Get GPS location using Javascript without Internet [duplicate]

[亡魂溺海] 提交于 2019-12-06 05:38:16
问题 This question already has answers here : Get GPS location from the web browser (6 answers) Closed 6 years ago . Hi Can we get GPS location using javascript without internet connection if device has GPS hardware? Please note who are marking it as duplicate I need javascript to work without internet connection and use GPS hardware to determine the location. 回答1: Javascript can show you geolocation via navigator.geolocation . function getLocation() { if (navigator.geolocation) navigator

Geo Fence: how to find if a point or a shape is inside a polygon using oracle spatial

空扰寡人 提交于 2019-12-06 05:37:07
问题 How do i find if a point or a polygon is inside another polygon using oracle spatial SQL query Here is the scenario; I have a table (STATE_TABLE) which contains a spatial type (sdo_geometry) which is a polygon (of say a State), I have another table (UNIVERSITY_TABLE) which contains spatial data (sdo_geometry) (point/polygon) which contains Universities; Now how do i find if a selected University('s) are in a given State using SQL select statement. Primarily i want to locate existence of given

How I can get current geographical location of the device programatically

不羁的心 提交于 2019-12-06 05:31:27
问题 I need to get the device's current geographical location. Scenario : if I am in US ..: my device location should be US Same as in the case, when I am in UK : my device location should be UK I need the sample code for finding this geographical location. (location determined by Network Location Provider ) 回答1: If you want to get the current country code, you want to look into Geocoder which you can use to get an Address which provides a getCountryCode method. Something like this Geocoder

How to get a User's Current Location Using Google Geocode API and PHP

余生长醉 提交于 2019-12-06 04:46:33
问题 I have created an app with and as part of data collection I would like to capture the user's current location when they access the app and website using php. Ideally, I want to make this as simple as possible. Currently, I have the following script, but it has a default address in it: $fullurl = "http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true"; echo $json; $string .= file_get_contents($fullurl); // get json content $json_a =

Parse SDK unable to fetch location in background, always time out exception

杀马特。学长 韩版系。学妹 提交于 2019-12-06 04:28:32
Here is the code I am using : ParseGeoPoint.getCurrentLocationInBackground(10000, new LocationCallback() { @Override public void done(ParseGeoPoint geoPoint, ParseException e) { if (e!=null) Print("location not found " + e.getLocalizedMessage()); else { Print("location found "); } } }); I have added permissions in manifest both access fine and access coarse location. Also, is it going to behave differently for android 6.0 with run time permissions. Please let me know if I am doing something wrong. Thanks 来源: https://stackoverflow.com/questions/36592307/parse-sdk-unable-to-fetch-location-in

React-native Android geolocation

自古美人都是妖i 提交于 2019-12-06 04:16:20
问题 I need to detect user's geolocation on React-native Android but the current implementation supports only iOS. I haven't found any tutorials or related questions anywhere. I have tried to create my own Android native component for this. I have tried it with the emulator (setting some coordinates via commandline) and with a phone but there is no gps icon in the action bar and the react callback has no data in it. I'm trying to get the last known location immediately and I'm also setting up an

Redirect depending on the Country?

纵然是瞬间 提交于 2019-12-06 04:14:23
We basically have 2 sites ( Java /JSP / Apache Webserver) : something.ca & something.com The .ca is canadian content, and the .com is american content. We need users to be redirected based on the ip addreess. We want US users to get the .com site and Canadian users get the .ca site. What is the best way to do this (at a webserver level or otherwise ) ? Please elaborate. In my web surfing experience, most websites - UPS.com for example - ask the user to select their country site rather than trying to figure it out themselves. They remember the selection in a cookie. Much depends on how