Here's a sample record from the cell_gsm table. I now have cell_lte and cell_wcdma and region_stat tables filled too.
| max_lat | min_lat | max_lon | min_lon | lat | lon | created | modified | radius | region | samples | source | weight | last_seen | block_first | block_last | block_count | hex(cellid) | radio | mcc | mnc | lac | cid | psc |
| 23.745807 | 23.745807 | 37.961832 | 37.961832 | 23.745807 | 37.961832 | 2013-11-12 14:05:43 | 2015-11-06 23:18:53 | 313 | GR | 1 | NULL | NULL | NULL | NULL | NULL | NULL | 0000CA000100010000034C | 0 | 202 | 1 | 1 | 844 | NULL |
I displayed the binary cellid column in hex to be more human readable. It follows the structure defined in ichnaea/models/cell.py, in which it represents the 5 columns after it.
I also added in the region country codes corresponding to the mcc of each record. I have a lot of records that have weird/invalid mcc's, I may remove them later.
I set samples to 1 for now, as I don't have any sample values to use.
Max and min lat and lon I set to the lat and lon, since I don't know how those are set.
That's what I've tried so far, but still none of my requests work. Keep getting the 404 error as follows:
HTTP/1.1 404 Not Found
Server: gunicorn/19.7.1
Date: Wed, 12 Jul 2017 15:24:36 GMT
Connection: close
Content-Type: application/json
Content-Length: 122
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 2592000
{"error":{"errors":[{"domain":"geolocation","reason":"notFound","message":"Not found"}],"code":404,"message":"Not found"}}
Here's the JSON I post to the server:
https://gist.github.com/Manicben/6546759a3897f7b986e0b3ed98607a5e
I use curl to post the JSON, which I confirm does work with MLS (with radioType instead of radio, etc.) I've tried both syntax versions, with radio and radioType.
radio produces the 404 error (this one doesn't work with MLS). radioType produces a 500 Internal Server Error (this one works with MLS).
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Connection: close
Content-Type: text/html
Content-Length: 141
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1><p>Internal Server Error</p></h1>
</body>
</html>
Very odd, maybe the 500 error means that it's trying to work but something is failing? Since 500 is the generic error, I can't trace what is causing it. Are there logs somewhere that I can see and trace the error back?
Thanks, Ben