geolocation

Finding if a given position (lat, lon) is within the BoundingBox of two coordinates (route-me)

有些话、适合烂在心里 提交于 2019-12-11 08:35:33
问题 I am working on an iPhone app using the Route-Me project. I am using a method called 'latitudeLongitudeBoundingBoxForScreen' which returns a set of two cooördinates. Defining the Northeast and Southwest corners in lat/lon of your screen. This seems to work fine. My question is how can I determine whether a given point (lat/lon) is within the boundaries of these two coordinates (northeast,southwest)? Thank you very much in advance for your help. 回答1: For general point in a polygon, the Point

cannot get place from google map using location

喜夏-厌秋 提交于 2019-12-11 08:34:20
问题 I try to get place(ex: locality, country, postal code) form google map using latitude and longitude. The following is my code that got null data: Edit: public void onLocationChanged(Location location) { geocoder = new Geocoder(this, Locale.getDefault()); if (location != null) { try { addresses = geocoder.getFromLocation(location.getLatitude()/1E6, location.getLongitude()/1E6, 1); if (addresses.size() > 0) { resultAddress = addresses.get(0); locality = resultAddress.getLocality(); sublocality

Cordova geolocation in IOS not working

大城市里の小女人 提交于 2019-12-11 08:18:46
问题 I am working in a project that uses Cordova geolocation plugin that will search for users around you. However, I cannot get the geolocation from the simulator, nor on the device. Before I use to get the coordinates but very unstable. After some code to fix the bug, I am now getting an error most of the time. I tried this for a week with no success. Any input, or advice? The JavaScript file: /***********Geolocation GEOLOCATION*************/ // Wait for device API libraries to load document

Location Services and Call Description status bar of iOS causes to appear black status bar. How to fix it?

拜拜、爱过 提交于 2019-12-11 08:02:19
问题 When Other Applications uses Location services iOS status bar example given below. It Causes a black status bar above and it causes some problem on network operations such as sending data to the server / Job request are not working when the black status bar appear only. See Below Screenshot. Sometimes it causes on below screen as well. When Black bar appears on the screen it's not going away till closes the app and re open it. It causing major functionalities of this app. 回答1: Select

Check validity of address with Geocoding on iPhone

只愿长相守 提交于 2019-12-11 07:42:39
问题 I have an app which prompts the user to input an address. Is there a way to check whether or not the address is a valid address, either using Google's Maps or Places APIs or not? Any help would be appreciated. I know it's a vague question but I'm not really sure how to ask it any other way. 回答1: A fast way to kill 95% spam profiles was for my company to have a onboard list of us state names and zip codes. If zip code and state did not match, we peomted the user to check again. Not foolproof

LocationManager still cant find last known location after GPS is turned on

送分小仙女□ 提交于 2019-12-11 07:34:50
问题 I'm having a problem with android where even after the user turns their location service on, the LocationManager still can't find the users location. Before I launch the activity that needs to use the user's location I call the following: //Menu Activity LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); if(lm.isProviderEnabled(LocationManager.GPS_PROVIDER){ Intent nearby = new Intent(mActivityContext, NearbyActivity.class); startActivity(nearby); }else{

GIS: How to read METAR & TAF values to get the pressure at sea level?

二次信任 提交于 2019-12-11 07:25:17
问题 I have this link on how to get the altitude in Android -> SensorManager.getAltitude(pressure at sea level, atmospheric pressure) But... need to know the value for PRESSURE AT SEA LEVEL. I have read the below statement from Android documentation on how to obtain it. The pressure at sea level must be known, usually it can be retrieved from airport databases in the vicinity. Then, I found url that may give the values by providing the airport code. In my case, it's Tokyo International Airport

How to show current location of user while open my app

寵の児 提交于 2019-12-11 07:01:10
问题 I want to make an app, when user open my app user will get their current location in my app and while user change their location it will also update after some specific time. I got solution of changed location while user change their location but i need to show current location of user while user open my app . 回答1: googleMap.setMyLocationEnabled(true); Location myLocation = googleMap.getMyLocation(); These are the the key lines to get current location. for more info ,refer these tutorials:

Optimizing Geographic Center in Google Maps with Respect to Travel Time if it Lies Within Water

血红的双手。 提交于 2019-12-11 06:59:43
问题 So I calculated the geographic center of multiple points and now want to optimize the geographic center so that if it lies in a body of water I can find the land point that is still closest to the true center, but also the closest for the original points. I also need some help with detecting if the point is infact in water so if someone could include the google maps query code for that I would appreciate it greatly. I included my getdata.php page to show my calculations, and any help would be

Xamarin.Forms.Webview Crossplatform Geolocation, is it possible?

瘦欲@ 提交于 2019-12-11 06:57:28
问题 I have a xamarin-forms-webview which refers to a webapp that uses geolocation. I know that in Android I need to override the method 'OnGeolocationPermissionsShowPrompt' as suggested here. But I don't want to make the implementation for each platform. How can I enable the location in the xamarin webview? I'm currently using this plugin to get de latitude and longitude. Thanks. 来源: https://stackoverflow.com/questions/38235519/xamarin-forms-webview-crossplatform-geolocation-is-it-possible