google-maps

How to use Geolocation API via curl [closed]

a 夏天 提交于 2021-02-11 12:21:51
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . Improve this question I have enabled the geolocation API provided by google. I am trying to test it using the command line, but I am getting an error. Although it is mentioned in the documentation that "If you'd like to try the Geolocation API with sample data, save the following JSON

Creating google maps v2 in a fragment using Navigation Drawer

蓝咒 提交于 2021-02-11 07:09:40
问题 I am trying to create a map in a Fragment but keep getting this error: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.SupportMapFragment.getMap()' on a null object reference at com.new.newapps.activity.MapsFragment.initilizeMap(MapsFragment.java:41) at com.new.newapps.activity.MapsFragment.onResume(MapsFragment.java:52) I am not sure how to fix this. Please have a look at my code below. MapsFragment class:

Creating google maps v2 in a fragment using Navigation Drawer

戏子无情 提交于 2021-02-11 07:07:40
问题 I am trying to create a map in a Fragment but keep getting this error: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.SupportMapFragment.getMap()' on a null object reference at com.new.newapps.activity.MapsFragment.initilizeMap(MapsFragment.java:41) at com.new.newapps.activity.MapsFragment.onResume(MapsFragment.java:52) I am not sure how to fix this. Please have a look at my code below. MapsFragment class:

Not able to get formated_address 'only in English' getting some part of result in regional language

纵饮孤独 提交于 2021-02-10 23:28:30
问题 I'm getting some part of google map result in regional language need complete result in ENGLISH I have tried hitting map's API with changing the language to 'en' and region to 'IN' $geocode=file_get_contents(https://maps.googleapis.com/maps/api/geocode/json?latlng=12.9415554,77.5595728&sensor=false&key=MYAPIGOOGLEKRY&language=en&region=IN); $geocode_arr=json_decode($geocode,true); if(array_key_exists("0",$geocode_arr['results'])){ $arr_exp=explode(",",$geocode_arr['results'][0]['formatted

How to use use-supercluster with Typescript

此生再无相见时 提交于 2021-02-10 21:12:32
问题 I am having troubles while implementing use-supercluster with TypeScript. I am trying to use clusters to differentiate two types of data in a Google Map with something like red clusters vs. green clusters. I can't find any documentation related to use this library with TypeScript and I am not getting enough information from its types: So, what is argument P ? I was following the use-supercluster creator's guide to add clusters but after installing supercluster types I am getting errors here:

How to use use-supercluster with Typescript

被刻印的时光 ゝ 提交于 2021-02-10 21:12:20
问题 I am having troubles while implementing use-supercluster with TypeScript. I am trying to use clusters to differentiate two types of data in a Google Map with something like red clusters vs. green clusters. I can't find any documentation related to use this library with TypeScript and I am not getting enough information from its types: So, what is argument P ? I was following the use-supercluster creator's guide to add clusters but after installing supercluster types I am getting errors here:

Toggle kml layers in Maps API

瘦欲@ 提交于 2021-02-10 20:42:00
问题 I am trying to now add the ability to toggle kmls with checkbox options for users to add kmls to a map that already has a couple of kmls loaded by default. I used this posts suggestions which has much in common with other posts of this variety to expand on my own script - Toggle multiple KML/KML layers in google maps API v3 But adding it in a pretty straightforward way doesn't work. Does anyone have any suggestions? Thanks for looking. <script src="https://maps.googleapis.com/maps/api/js?v=3"

Toggle kml layers in Maps API

我们两清 提交于 2021-02-10 20:37:15
问题 I am trying to now add the ability to toggle kmls with checkbox options for users to add kmls to a map that already has a couple of kmls loaded by default. I used this posts suggestions which has much in common with other posts of this variety to expand on my own script - Toggle multiple KML/KML layers in google maps API v3 But adding it in a pretty straightforward way doesn't work. Does anyone have any suggestions? Thanks for looking. <script src="https://maps.googleapis.com/maps/api/js?v=3"

NullPointerException : Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync

允我心安 提交于 2021-02-10 15:54:55
问题 I'm using com.google.android.gms:play-services-maps:11.0.2 version of Google Map Service. When trying to call the below, I get the following error: java.lang.NullPointerException: Attempt to invoke virtual method void com.google.android.gms.maps.MapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference Below is my code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity

Find locations by name in Google Maps API within lat/lng bounds

倾然丶 夕夏残阳落幕 提交于 2021-02-10 14:36:55
问题 I have a list of named locations and a set of lat/lng bounds that I want to plug in to the Google Maps API and have it find the locations for me. The names can be very vague, like simply "the boarding school". Using the lat/lng bounds, is there a way I can get GMaps to find these vaguely named locations within the coordinates provided? My application is web-based and powered by Python Flask in the backend. I've tried looking into Maps' Place Search, but it seems like it can only 'prefer' a