Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread User location
Tue, Jun 6 2017 9:36 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All,

I guess it's something about using google maps somehow, but is it
possible to (silently) identify the location (geolocation) of the user,
and save it automatically to the table - would be very nice if can have
street address as well Smile

Note: I have registrered for google map api.

Thanks in advance,

Hüseyin

Tue, Jun 6 2017 11:23 AMPermanent Link

Matthew Jones

Hüseyin Aliz wrote:

>  is it possible to (silently) identify the location (geolocation) of the user

Where is your EWB application running? Browser, mobile, PhoneGap or what? Most systems will not give you the location silently, but there is a browser API that you could call to get the location, and the user will be prompted to allow or not. If you are using PhoneGap or similar, that might be possible via permissions in advance.

If you have little control, you can use something like MaxMind (on your server) to use geolocation of the IP address. But that is typically good for country only, and cannot be relied upon. They often have the address of the data centre your internet link appears in for example. Or on a train or plane wifi, the location of the central service. And of course the GPS can all be faked too, if someone cares.

--

Matthew Jones
Tue, Jun 6 2017 11:57 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Matthew,

The users will be/are using mobile (will implement phonegap soon). I am
not interested in country geolocation of the ip address, much more
street address if possible Smile

Thanks for input.

Regards,
Hüseyin

Den 06-06-2017 kl. 17:23 skrev Matthew Jones:
> Hüseyin Aliz wrote:
>
>>   is it possible to (silently) identify the location (geolocation) of the user
> Where is your EWB application running? Browser, mobile, PhoneGap or what? Most systems will not give you the location silently, but there is a browser API that you could call to get the location, and the user will be prompted to allow or not. If you are using PhoneGap or similar, that might be possible via permissions in advance.
>
> If you have little control, you can use something like MaxMind (on your server) to use geolocation of the IP address. But that is typically good for country only, and cannot be relied upon. They often have the address of the data centre your internet link appears in for example. Or on a train or plane wifi, the location of the central service. And of course the GPS can all be faked too, if someone cares.
>
Tue, Jun 6 2017 1:04 PMPermanent Link

Matthew Jones

Hüseyin Aliz wrote:

> The users will be/are using mobile (will implement phonegap soon). I am not interested in country geolocation of the ip address, much more street address if possible Smile

Just ordinary browser calls then - make a suitable little function and an EWB interface.

https://stackoverflow.com/questions/2577305/get-gps-location-from-the-web-browser

Obviously you can't actually get the street address (house number) but more a probable location. Some places will be spot on, and others (particularly larger buildings with metal) will give you a location outside by a bit. But within a few streets, if the user lets you have it.

--

Matthew Jones
Tue, Jun 6 2017 1:36 PMPermanent Link

erickengelke

Avatar

> The users will be/are using mobile (will implement phonegap soon). I am not interested in country geolocation of the ip address, much more street address if possible Smile

There is an EWS  phonegap example doing geolocation in my EWB book, or. you could convert the JavaScript examples  Your mobile app is given latitude and longitude coordiantes by the GPS or cell towers, depending on how you are configured, using the GPS drains the battery more.  You need to call a Google or similar api to convert co-ordinates to some useful format like zip code, street address, etc.  To do that you need to register with Google and actually pay if you go above a certain number of queries per month.

I found using google maps and the co-ordinates helped me get a feel of how accurate it was.  It's generally within a few metres / yards.  Elevation is not supported on all device You are not going to get a pizza or taxi to the right house or apartment with GPS, but it is pretty cool for listing nearby attractions.

Erick
--

Matthew Jones
http://www.erickengelke.com
Wed, Jun 7 2017 6:15 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Matthew/Erick,

Thanks for input, i'll see what i can do Smile

Regards,

Hüseyin


Den 06/06/2017 kl. 19.36 skrev erickengelke:
>> The users will be/are using mobile (will implement phonegap soon). I am not interested in country geolocation of the ip address, much more street address if possible Smile
> There is an EWS  phonegap example doing geolocation in my EWB book, or. you could convert the JavaScript examples  Your mobile app is given latitude and longitude coordiantes by the GPS or cell towers, depending on how you are configured, using the GPS drains the battery more.  You need to call a Google or similar api to convert co-ordinates to some useful format like zip code, street address, etc.  To do that you need to register with Google and actually pay if you go above a certain number of queries per month.
>
> I found using google maps and the co-ordinates helped me get a feel of how accurate it was.  It's generally within a few metres / yards.  Elevation is not supported on all device You are not going to get a pizza or taxi to the right house or apartment with GPS, but it is pretty cool for listing nearby attractions.
>
> Erick
Image