Posts

Showing posts with the label google-maps

python google geolocation api using wifi mac

python google geolocation api using wifi mac I'm trying to use Google's API for geolocation giving wifi data to determine location. This is their intro. And this is my code @author: Keith """ import requests payload = { "considerIp": "false", "wifiAccessPoints": [ { "macAddress": "00:25:9c:cf:1c:ac", "signalStrength": -43, "signalToNoiseRatio": 0 }, { "macAddress": "00:25:9c:cf:1c:ad", "signalStrength": -55, "signalToNoiseRatio": 0 } ], 'key':'<MyAPIKey>' } r = requests.post('https://www.googleapis.com/geolocation/v1/geolocate', params=payload) print(r.text) This is the output { "location": { "lat": 32.3643098, "lng": -88.703656 }, "accuracy": 6061.0 } The request ignored all of the payload except t...

Obtain list of My Places from Google Maps

Obtain list of My Places from Google Maps I am trying to obtain the list of places the user has saved on Google Maps. Now I know there isnt an API for this (for whatever reason), but I saw here: "My Places" Google Maps API That apparently there used to be a way to obtain the URL, but it does not seem to work with my list of places. E.g. https://www.google.com/maps/@46.889424,0.1194148,6z/data=!4m3!11m2!2s1KbZtik1IdXyNhwfXEb3P9vaZvzU!3e3 Does not seem to work if I append &output=kml or &output=json I created this list on Google Maps, then hit share and obtained that link. I even tried parsing the resulting HTML but it seems everything is handled by some Javascript Engine and I can't find any reference to Google Ids there --- I dont even know how they handle clicks! Any help? There must be a way to retrieve this information programmatically! EDIT: I managed to get something working by visiting the shared link, then processing the html and storing the window.APP_INI...

TKCustomMap Version Conflict

TKCustomMap Version Conflict This issue has been reported on GitHub here - https://github.com/TorbenK/TK.CustomMap/issues/325 Has anyone else has struggled with this? I was stoked to find this nuget package because it does exactly what I'm looking for but it needs Places and some other GooglePlayServices installed and I can't install them because of this conflict. I'm also not sure if uninstalling TK.CustomMap and then installing the Play Services would even help because the person who reported the issue on GitHub said- I converted my app to .net 2.0 and had to use the newest Google play services 60.1142.1 for AdMob to work. It wouldn't install until I uninstalled TK.CustomMap, and now TK.CustomMap won't reinstall because it only want to use GooglePlayServices 42.1021.1 Severity Code Description Project File Line Suppression State Error NU1107 Version conflict detected for Xamarin.GooglePlayServices.Tasks. Reference the package directly from the project to resolve t...

How to load geojson from controller to google api with thymeleaf on Spring Boot?

How to load geojson from controller to google api with thymeleaf on Spring Boot? I´m trying to load or add my json (with GeoJson format) from my controller sending to HTML page by Thymeleaf to display on Google API MAP but i can´t do it (nothing happend, the map don´t load the geojson, there is no error on the Console, just nothing append. Just appear the Map but without any Mark of my Json .) On my Controller i generate my GeoJson with Json Objects, and then i send to the page with Model. This is my controller (i already validate my json on geojson.io and it works): @GetMapping("/test") public String Json( Model model) throws JSONException { JSONObject featureCollection = new JSONObject(); featureCollection.put("type", "FeatureCollection"); JSONObject properties = new JSONObject(); properties.put("name", "ESPG:4326"); JSONObject crs = new JSONObject(); crs.put("type", ...

Embedded Map - Broken Route [closed]

Embedded Map - Broken Route [closed] I am once more trying to figure out how to solve a challenge with an embeded google map and don't know if the issues are being caused by the code or my API settings. Map here: https://www.theafricamonth.com/trail1-1 I want to find a solution to why there is a gap in the current route. I want to find a solution to why my locations are not clickable. Would greatly appreciate someone to shed some knowledge on this. Thanks in advance. This question appears to be off-topic. The users who voted to close gave this specific reason: