mozilla / MozStumbler

Android Stumbler for Mozilla
http://location.services.mozilla.com
Mozilla Public License 2.0
621 stars 214 forks source link

Wigle.net KML import fail #1798

Open Leproide opened 8 years ago

Leproide commented 8 years ago

Hello, I have a wifi network geolocalization database with 16k records in kml/sql format I tried to import within the android MozStumbler app but it crashed I guess the wigle kml is not compatible, is there a way to convert and import it?

hannosch commented 8 years ago

The KML import feature of Mozilla Stumbler only supports its own data format. It's meant as a way to save and load stumbling progress over multiple sessions to show it on its own map. None of the data being imported is send to the backing service.

To my knowledge there is no converter for the wigle.net KML import format to the JSON format used by our location service. I'm afraid you'll have to write one yourself and send the data directly to the service. The service API is documented at https://mozilla.github.io/ichnaea/api/geosubmit2.html

Leproide commented 8 years ago

Hi hannosch, Thanks for your answers. In my sqlite I have a table for wifi and cells named "location" with:

In another table named network I have:

https://mozilla.github.io/ichnaea/api/geosubmit2.html At this page i read this is required:

I don't have this information... Is there a way to send my database to mozilla so they can import it in the proper way?

hannosch commented 8 years ago

The extra fields aren't required. Almost all fields are actually optional. The example just mentions all of the possible fields.

For WiFi only the macAddress is required. For cell entries, radioType, mobile country and network code, location area code and cell id are required.

Leproide commented 8 years ago

Ok perfect, I'm not a real programmer but I'll try to make a converter in the next days. I think if mozilla makes a importer tool is better, wigle.net has a very big community. Thanks for the support!