Google WIFI LBS

mhannam8 years ago

I am having a difficult time getting wifi geolocation to work. I'm using GL200 protocol.

Here is the log output:

+RESP:GTWIF,210102,354524044608058,,4,08bd43364eea,-34,,,,0018e7fe1f5f,-65,,,,12da43eaf3cd,-66,,,,10da43eaf3cc,-67,,,,,,,,99,20170309160724,0028$

And my config file:

    <entry key='location.enable'>true</entry>
    <entry key='location.type'>true</entry>
    <entry key='location.key'>my_key</entry>
    
    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>google</entry>
    <entry key='geocoder.key'>my_key</entry>	

Any ideas on why location is not being resolved?

Thanks!

Anton Tananaev8 years ago

Your "location.type" value is incorrect. Please check documentation for the possible values.

mhannam8 years ago

Thank you! Is Google currently supported for geolocation? Are there any plans to support it?

Anton Tananaev8 years ago

Yes, it is supported. Use "google" as the type.

mhannam8 years ago

I have tried Google for geolocation with these settings.

    <entry key='location.enable'>true</entry>
    <entry key='location.type'>google</entry>
    <entry key='location.key'>google_api_key</entry>

Also have tried OpenCellID with these settings.

    <entry key='location.enable'>true</entry>
    <entry key='location.type'>opencellid</entry>
    <entry key='location.key'>my_opencellid_key</entry>

Neither service will resolve a location.
My device reports:

+RESP:GTWIF,210102,354524044608058,,4,c413e2010e54,-38,,,,c413e2010e55,-39,,,,c8d3ff04a837,-57,,,,705a0f1658b8,-61,,,,,,,,100,20170310123158,0166$

From the log:

2017-03-10 12:32:01  INFO: [1B87CA5F] connected
2017-03-10 12:32:01 DEBUG: [1B87CA5F: 5004 < 216.3.13.179] HEX: 2b524553503a47545749462c3231303130322c3335343532343034343630383035382c2c342c6334313365323031306535342c2d33382c2c2c2c6334313365323031306535352c2d33392c2c2c2c6338643366663034613833372c2d35372c2c2c2c3730356130663136353862382c2d36312c2c2c2c2c2c2c2c3130302c32303137303331303132333135382c3031363624
2017-03-10 12:32:01  INFO: [1B87CA5F] id: 354524044608058, time: 2017-03-09 13:50:33, lat: 36.06600, lon: -79.79154, speed: 0.4, course: 0.0
2017-03-10 12:32:23  INFO: [1B87CA5F] disconnected

Do you have any suggestions on how to troubleshoot?

This is on GL200 protocol.

Anton Tananaev8 years ago

The prefix in the config should be "geolocation", not "location".

mhannam8 years ago

I'm an idiot. Thank you.

Anton Tananaev8 years ago

You are not. The prefix has changed in version 3.10. It was "location" before.

Robert7 years ago

Hi mhannam, could you share what device are you using with LBS to get location with Wifi and Cell ID? Thanks in advance.