google-geolocation

Get timezone directly from Country and State Google API

眉间皱痕 提交于 2021-01-29 05:31:44
问题 I need to get the timezone from just country and state (E.g. Australia/Sydney). There's an answer here that gets the coordinates first then requests for the timezone using the coordinates as params. But I'm asking is there a direct way of doing this via any google API? 回答1: Yes, you can use the Time Zone API, the Google Maps Time Zone API provides a simple interface to request the time zone for a location on the earth, as well as that location's time offset from UTC. The Google Maps Time Zone

Google geometry Api in C#

大兔子大兔子 提交于 2020-12-01 10:40:49
问题 I have a point (latitude,longitude) ex : 33.959295,35.606100 and I'm looking for a way in c# to check if this point is on a specific route (a list of points or a polyline). I did some research and I found that isLocationOnEdge function contained within the Google Maps Geometry Library does exactly what I need but it is not available for c#. Here are some examples in other languages: Google Map Javascript API https://developers.google.com/maps/documentation/javascript/geometry#isLocationOnEdge

Google Geolocation API is always returning the same location regardless of cellTower specified

你说的曾经没有我的故事 提交于 2020-04-30 11:22:28
问题 I'm using the Google Geolocation API to approximate location based on cell towers that are visible. However, I always get the same location as the result. Using the following body: { "considerIp": false, "radioType": "lte", "cellTowers": [{ "signalStrength": -78, "cellId": 133978007, "mobileNetworkCode": 410, "mobileCountryCode": 310, "locationAreaCode": 27196 }] } Produces the following result: {"location": {"lat": 31.968598800000002, "lng": -99.9018131}, "accuracy": 1457406} The actual

Why different requests return same geolocation with google geolocation api

孤人 提交于 2020-01-14 18:50:26
问题 I send two requests to google geolocation api: https://www.googleapis.com/geolocation/v1/geolocate?key=[mykey] 1st request: {"Carrier": "T-Mobile","CellTowers":[{"Age":0,"CellId":"39627456","LocationAreaCode":"40495","MobileCountryCode":"310","MobileNetworkCode":"260","SignalStrength":-95,"timingAdvance":0}],"HomeMobileCountryCode":"310","HomeMobileNetworkCode":"260","RadioType":"gsm"} 2nd request: {"Carrier":"T-Mobile","CellTowers":[{"Age":0,"CellId":"4912","LocationAreaCode":"20516",

GeoFence Device when app is in background

允我心安 提交于 2019-12-31 22:37:08
问题 I have implemented the geoFence api and everything is working good. But there are some problems, I want more clarification regarding my confusions. Here are some of the confusions and problems: I want my user to get notified when he enters a geofenced area. I have implemented the GeofenceTransitionsIntentService as per guideline but it is not triggering the transition when the app is in background. What should I need to do? GeoFence Expire time: it is pretty obvious that if we enter Never it

This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

浪尽此生 提交于 2019-12-27 10:52:20
问题 I have a latitude, and longitude : "-27.0000,133.0000" . I want produce a map base on that. I've tried go to this link https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&key=****** I keep getting this error on the browser { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "results" : [], "status" : "REQUEST_DENIED" } But I think I

This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

一个人想着一个人 提交于 2019-12-27 10:51:52
问题 I have a latitude, and longitude : "-27.0000,133.0000" . I want produce a map base on that. I've tried go to this link https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&key=****** I keep getting this error on the browser { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "results" : [], "status" : "REQUEST_DENIED" } But I think I

Measure GPS distance between two points without using almost any math? (accuracy is not needed at all)

岁酱吖の 提交于 2019-12-25 01:46:58
问题 I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, this function only checks if a number is between a range min and max, it's a very limited tool. Can I use this to find near users? This is a pseudo-code example of what I could do, this example finds users that their lat and long values are not more or less than 2 comparing with the target user: