Questions tagged [getlocation]

16 questions
3
votes
2 answers

flutter-web: get location on web by Location plugin

I have old flutter project, I added web support to it, Now ,I am trying to get my Location in flutter web , So i added location to my page. this is my code: @override void initState() { super.initState(); _getLocation(); } Future…
Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149
2
votes
1 answer

How to get exact y-coordinate from getLocation in selenium java?

Pre-req: Selenium 3.141 Firefox browser Requirement: Get x,y co-ordinates of an webelement and perform mouse move to xy co-ordinates. X is calculated properly whereas y co-ordinate is falling 100 pixel short. Note: Webelement Formfield is hidden,…
sridattas
  • 459
  • 1
  • 6
  • 21
1
vote
0 answers

react native get location accuaracy problem

i am building one cycling react native app that tracks user cycled data like speed,distance travlled, calories burnt data. i am using react-native-get-location npm library to get the current location of the user using get current position…
Nishanth
  • 39
  • 3
1
vote
0 answers

How to get current location on chinese phone?

I use Goole play service location APIs and fusedLocationClient.requestLocationUpdates(locationRequest,locationCallback,looper); to get current location. But sometimes it get a last location on Chinese phone like oppo、Xiaomi.(It has google plays on…
1
vote
2 answers

Python: How to get position of pandas.series element where conditions exist?

I have a numpy.ndarrays: x,y: >>> x = np.ndarray(shape=(10,), buffer=np.array([0.9902, 0.9394, 0.839, 0.8574, 0.9174, 0.8742, 0.8955, 0.9196, 0.9388, 0.9602]), dtype=float) [0.9902 0.9394 0.839 0.8574 0.9174 0.8742 0.8955 0.9196 0.9388…
Ren Ningen
  • 47
  • 6
1
vote
1 answer

Trying to get location of bucket

I am new with this stuff, I want to get the location of s3 bucket but I still have this error "NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials" even I am using access…
1
vote
2 answers

How can I cat latitude and longitude of Android device?

So I'm making this app which finds restaurants near you, fetching information from a food-delivery app, using JSoup library. The only problem with it is that sometimes the latitude and the longitude are getting null value. Situations in which my…
0
votes
0 answers

java.lang.NumberFormatException With Arabic phone language

When the phone language is Arabic, I get an error on my app: java.lang.NumberFormatException: For input string: "٣٨.٦٣٤" When I try to capture the latitude and longitude of a user's location, but when the phone language is in English, I don't get…
0
votes
0 answers

FusedLocationProviderClient: Position frequency

I'm trying to get a good position via android and GNSS. The locationManager of Android gives me in every Case only one update per second. So i decided to switch to the GoogleFusedApi and the FusedLocationProviderClient to get my current position…
0
votes
0 answers

Flutter : get rejected by using geolocator in both ios and android

I have flutter app using geolocator, the app rejected in both appStore and playStore, my AndroidManifest.xml contain these permissions :
sermed
  • 105
  • 3
  • 11
0
votes
1 answer

get current position in expo

I am building a project in react-native and i need to find my current location. My teacher told me to use Location.getCurrentPositionAsync. But the position I always find is: 37.421998333333335 - -122.084. because? import React, { Component,…
Elly
  • 345
  • 1
  • 8
0
votes
0 answers

Flutter location doesn't return data after use onLocationChanged

I have two separate screen home.dart and track.dart In home.dart location.getLocation() In track.dart I'm listening location location.onLocationChanged.listen((LocationData loc) { // do something }) When I navigate to track.dart screen and return…
ammasum
  • 118
  • 1
  • 9
0
votes
1 answer

Cant get the location and address of the user

[So i have that problem that it gives me an error like: error: incompatible types: cannot be converted to PendingIntent …
0
votes
1 answer

How to wait for a OnOcation Result before continuing when getting the device location in android

I have an application in which I need to get the device location , in my code after getting the device's location i store them in shared preferences and then after clicking on a button I retrieve the latitude and longitude and use them in other…
Haytham
  • 834
  • 1
  • 12
  • 31
-1
votes
1 answer

Why does the first parameter in getLocation doesn't execute as a function?

How can I execute the function accept in updatePosition ? Why can denyexecute itself but not accept ? accept = alert(123); deny = alert(123); function getLocation(accept,deny) { if (navigator.geolocation) { …
Helene
  • 3
  • 3
1
2