GithubHelp home page GithubHelp logo

Comments (17)

thisisaaronland avatar thisisaaronland commented on June 19, 2024

It appears that you are using the go-whosonfirst-pip-v2 package, correct?

If that is the case then it is not currently possible to return name_*: properties as part of a standard point-in-polygon (PIP) query. Because the PIP server uses an in-memory index there are a finite number of properties that we store by default. These are defined as the "standard place response" which is defined here:

https://github.com/whosonfirst/go-whosonfirst-spr#interface

In order to collect name:* properties you would either need to query and parse the full record (identified in the mz:uri property):

curl -s https://whosonfirst.mapzen.com/data/856/324/29/85632429.geojson | jq '.properties' | grep -e '_x_preferred' | wc -l
     270

You could also call the mapzen.places.getInfo API method and pass along an extras=name:* parameter. (It is not currently possible to specify name:*_preferred although that's a good idea so we'll add it to the list.) You could also call the mapzen.places.getByLatLon API method, again passing the extras= parameter defined above.

Going forward, I can the value in teaching the PIP server (again I am assuming that's the context based on the URL you pasted above) in how to access arbitrary properties at response time, either by pre-storing them or by doing a secondary lookup. I have some ideas about this and there is some work in progress that might help but as of this writing none of it is ready for general use.

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Oh, also just noticing that this issue was filed in the go-whosonfirst-pip-v2 package.

Apologies, it's Sunday morning here and I am still waking up... :-)

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

With a few more minutes thought it occurs to me that a reasonable way to deal with this issue is to update the HTTP interface to "decorate" responses with data stored in SQLite databases:

The simplest thing would be to assume the use of pre-existing SQLite databases and to define them when the PIP server is started, fetching and retrieving additional properties on a per-request basis, starting first with names (stored in the names table) and then with arbitrary properties (stored in the geojson table but which would incur the additional cost of parsing and loading a full GeoJSON record in to memory):

https://github.com/whosonfirst/go-whosonfirst-pip-v2/blob/master/http/intersects.go#L95-L121

Once that's been proven to work the next step should be flags to generate SQLite databases on demand as the PIP server is indexing data at start up, storing only those records (and then eventually properties) that it needs.

I might be able to bang out a proof-of-concept of the first steps shortly. The rest might take a couple of weeks, given all the other things going on...

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

There is very early and still experimental support for "extras" in the sqlite branch. You can see an example here:

#17 (comment)

The requirements are:

  • passing the -allow-extras parameter
  • passing at least one -extras-database parameter with the path to a WOF SQLite database (see also: https://whosonfirst.mapzen.com/sqlite/
  • passing the ?extras= parameter with your HTTP query - the allowed syntax for extras is either a fully qualified property or {PREFIX}:* to retrieve all the properties for that prefix; multiple extras can be defined as a comma-separated string

Generating a database on the fly during indexing is in progress but not complete yet. If you have a chance to try this I would be curious to hear what you think.

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Okay, the second cut at this has landed in the sqlite branch:

#17 (comment)

If you pass a -allow-extras flag then a temporary SQLite database will be created during indexing, which will be used by the intersects handler to update any responses with data defined in the ?extras= parameter.

The -extras-database parameter is now deprecated and will be removed shortly.

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

I am going to close this issue for now as support for ?extras= parameters has been merged in to master. For example:

curl -s 'http://localhost:8080/?latitude=37.794906&longitude=-122.395229&extras=name:' | python -mjson.tool | grep name
            "name:eng_x_preferred": [
            "wof:name": "Super Bowl City",

This does not support wildcard properties beyond "everything in this namespace". That still seems like a good idea but introduces an extra layer of complexity that I'd like to have a think about; also it's not a syntax that is supported in the Mapzen Places API.

from go-whosonfirst-pip-v2.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on June 19, 2024

Good job! But it returns name: of the first place and ignores other places. In the following example, county and country should be with name: as well.

curl 'http://localhost:8300?latitude=36.1&longitude=140.08&extras=name:' | python -mjson.tool
{
    "places": [
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.158025,
            "mz:longitude": 140.307438,
            "mz:max_latitude": 36.94546508789058,
            "mz:max_longitude": 140.85189819335895,
            "mz:min_latitude": 35.73959732055664,
            "mz:min_longitude": 139.68789672851597,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/728/01/85672801.geojson",
            "name:ace_x_preferred": [
                "Prefektur Ibaraki"
            ],
            "name:ara_x_preferred": [
                "\u0625\u064a\u0628\u0627\u0631\u0627\u0643\u064a"
            ],
            "name:aze_x_preferred": [
                "\u0130baraki"
            ],
            "name:bul_x_preferred": [
                "\u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:cat_x_preferred": [
                "Prefectura dIbaraki"
            ],
            "name:cdo_x_preferred": [
                "Ibaraki-g\u00e2ing"
            ],
            "name:ces_x_preferred": [
                "Prefektura Ibaraki"
            ],
            "name:ckb_x_preferred": [
                "\u0626\u06cc\u0628\u0627\u0631\u0627\u06a9\u06cc"
            ],
            "name:deu_x_preferred": [
                "Pr\u00e4fektur Ibaraki"
            ],
            "name:eng_x_preferred": [
                "Ibaraki Prefecture"
            ],
            "name:eng_x_variant": [
                "Ibaraki",
                "Ibaraki-ken"
            ],
            "name:epo_x_preferred": [
                "Gubernio Ibaraki"
            ],
            "name:est_x_preferred": [
                "Ibaraki prefektuur"
            ],
            "name:fas_x_preferred": [
                "\u0627\u0633\u062a\u0627\u0646 \u0627\u06cc\u0628\u0627\u0631\u0627\u06a9\u06cc"
            ],
            "name:fin_x_preferred": [
                "Ibarakin Prefektuuri"
            ],
            "name:fin_x_variant": [
                "Ibarakin prefektuuri"
            ],
            "name:fra_x_preferred": [
                "Pr\u00e9fecture dIbaraki"
            ],
            "name:gle_x_preferred": [
                "Maoracht Ibaraki"
            ],
            "name:glg_x_preferred": [
                "Prefectura de Ibaraki"
            ],
            "name:hbs_x_preferred": [
                "Prefektura Ibaraki"
            ],
            "name:heb_x_preferred": [
                "\u05d0\u05d9\u05d1\u05e8\u05d0\u05e7\u05d9"
            ],
            "name:hun_x_preferred": [
                "Ibaraki prefekt\u00fara"
            ],
            "name:ilo_x_preferred": [
                "Prepektura ti Ibaraki"
            ],
            "name:ind_x_preferred": [
                "Prefektur Ibaraki"
            ],
            "name:ita_x_preferred": [
                "Prefettura di Ibaraki"
            ],
            "name:jav_x_preferred": [
                "Pr\u00e9f\u00e8ktur Ibaraki"
            ],
            "name:jpn_x_preferred": [
                "\u8328\u57ce\u770c"
            ],
            "name:jpn_x_variant": [
                "\u3044\u3070\u3089\u304d",
                "\u3044\u3070\u3089\u304d\u3051\u3093",
                "\u3044\u3070\u3089\u304d\u30fb\u3051\u3093",
                "\u8328\u57ce",
                "\u30a4\u30d0\u30e9\u30ad",
                "\u30a4\u30d0\u30e9\u30ad\u30b1\u30f3"
            ],
            "name:kat_x_preferred": [
                "\u10d8\u10d1\u10d0\u10e0\u10d0\u10d9\u10d8\u10e1 \u10de\u10e0\u10d4\u10e4\u10d4\u10e5\u10e2\u10e3\u10e0\u10d0"
            ],
            "name:kor_x_preferred": [
                "\uc774\ubc14\ub77c\ud0a4\ucf04"
            ],
            "name:kor_x_variant": [
                "\uc774\ubc14\ub77c\ud0a4 \ud604"
            ],
            "name:lav_x_preferred": [
                "Ibaraki prefekt\u016bra"
            ],
            "name:lit_x_preferred": [
                "Ibarakio prefekt\u016bra"
            ],
            "name:mar_x_preferred": [
                "\u0907\u092c\u093e\u0930\u093e\u0915\u0940"
            ],
            "name:mkd_x_preferred": [
                "\u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:mon_x_preferred": [
                "\u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:msa_x_preferred": [
                "Wilayah Ibaraki"
            ],
            "name:nan_x_preferred": [
                "Ibaraki-ko\u0101n"
            ],
            "name:nno_x_preferred": [
                "Ibaraki prefektur"
            ],
            "name:nor_x_preferred": [
                "Ibaraki Prefektur"
            ],
            "name:pam_x_preferred": [
                "Prepektura ning Ibaraki"
            ],
            "name:pnb_x_preferred": [
                "\u0636\u0644\u0639 \u0627\u0628\u0627\u0631\u0627\u06a9\u06cc"
            ],
            "name:pol_x_preferred": [
                "Prefektura Ibaraki"
            ],
            "name:ron_x_preferred": [
                "Prefectura Ibaraki"
            ],
            "name:rus_x_preferred": [
                "\u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:sco_x_preferred": [
                "Ibaraki Prefectur"
            ],
            "name:sgs_x_preferred": [
                "Ibaraki prefekt\u016bra"
            ],
            "name:sme_x_preferred": [
                "Ibaraki prefektuvra"
            ],
            "name:spa_x_preferred": [
                "Prefectura de Ibaraki"
            ],
            "name:srp_x_preferred": [
                "\u041f\u0440\u0435\u0444\u0435\u043a\u0442\u0443\u0440\u0430 \u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:sun_x_preferred": [
                "Ibaraki Prefecture"
            ],
            "name:swa_x_preferred": [
                "Mkoa wa Ibaraki"
            ],
            "name:swe_x_preferred": [
                "Ibaraki Prefektur"
            ],
            "name:swe_x_variant": [
                "Ibaraki prefektur"
            ],
            "name:tgk_x_preferred": [
                "\u041f\u0440\u0435\u0444\u0435\u043a\u0442\u0443\u0440\u0430\u0438 \u0418\u0431\u0430\u0440\u0430\u043a\u0438"
            ],
            "name:tgl_x_preferred": [
                "Prepektura ng Ibaraki"
            ],
            "name:tha_x_preferred": [
                "\u0e08\u0e31\u0e07\u0e2b\u0e27\u0e31\u0e14\u0e2d\u0e34\u0e1a\u0e30\u0e23\u0e30\u0e01\u0e34"
            ],
            "name:uig_x_preferred": [
                "\u0626\u0649\u0628\u0627\u0631\u0627\u0643\u0649 \u0646\u0627\u06be\u0649\u064a\u0649\u0633\u0649"
            ],
            "name:ukr_x_preferred": [
                "\u041f\u0440\u0435\u0444\u0435\u043a\u0442\u0443\u0440\u0430 \u0406\u0431\u0430\u0440\u0430\u043a\u0456"
            ],
            "name:und_x_variant": [
                "\u8328\u57ce\u770c",
                "Ibaraki Ken"
            ],
            "name:unk_x_variant": [
                "Ibaraki-ken"
            ],
            "name:urd_x_preferred": [
                "\u0627\u06cc\u0628\u0627\u0631\u0627\u06a9\u06cc \u067e\u0631\u06cc\u0641\u06cc\u06a9\u0686\u0631"
            ],
            "name:yue_x_preferred": [
                "\u8328\u57ce\u7e23"
            ],
            "name:zho_x_preferred": [
                "\u8328\u57ce\u53bf"
            ],
            "name:zho_x_variant": [
                "\u8328\u57ce\u7e23"
            ],
            "wof:country": "JP",
            "wof:id": 85672801,
            "wof:lastmodified": 1505432325,
            "wof:name": "Ibaraki",
            "wof:parent_id": 85632429,
            "wof:path": "856/728/01/85672801.geojson",
            "wof:placetype": "region",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.096175,
            "mz:longitude": 140.072981,
            "mz:max_latitude": 36.2361335754395,
            "mz:max_longitude": 140.17239379882795,
            "mz:min_latitude": 35.94746398925778,
            "mz:min_longitude": 139.99589538574196,
            "mz:uri": "https://whosonfirst.mapzen.com/data/890/519/957/890519957.geojson",
            "wof:country": "JP",
            "wof:id": 890519957,
            "wof:lastmodified": 1505433065,
            "wof:name": "Tsukuba Shi",
            "wof:parent_id": 85672801,
            "wof:path": "890/519/957/890519957.geojson",
            "wof:placetype": "county",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.13793,
            "mz:longitude": 138.441899,
            "mz:max_latitude": 45.52288818400007,
            "mz:max_longitude": 153.98706054700006,
            "mz:min_latitude": 20.42288970900006,
            "mz:min_longitude": 122.93458557100007,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/324/29/85632429.geojson",
            "wof:country": "JP",
            "wof:id": 85632429,
            "wof:lastmodified": 1509142777,
            "wof:name": "Japan",
            "wof:parent_id": 102191569,
            "wof:path": "856/324/29/85632429.geojson",
            "wof:placetype": "country",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        }
    ]
}

Thanks for your reply and great work in Sunday morning. Please take care.

I'm not sure but you enjoy too much with golang. How about nim? Actually I'm not familiar with both, nim seems much easier and faster than go, rust, D....

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Huh, okay that looks like a bug. I will take a look shortly.

I am not familiar with nim. Go is not our first choice for all tools but for some things (like this project) is the happy medium between all the different concerns. It also forces us to make sure that the design decisions in Who's On First (WOF) play nicely with both compiled and interpreted languages.

nim looks interesting and the goal of WOF is not to have an opinion about whatever language/infrastructure a person uses and by extension plays nicely with everyone so I will have a look as time permits.

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Oh, I think the problem is an errant break statement. Testing now...

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

This should be fixed as of : 1115646

When you have a moment, would you try it out and confirm?

from go-whosonfirst-pip-v2.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on June 19, 2024

I tried with the latest pip-server.

% ls ~/whosonfirst-data-sqlite/*-20171212.db
/Users/s-hirano/whosonfirst-data-sqlite/country-20171212.db
/Users/s-hirano/whosonfirst-data-sqlite/county-20171212.db
/Users/s-hirano/whosonfirst-data-sqlite/locality-20171212.db
/Users/s-hirano/whosonfirst-data-sqlite/region-20171212.db

% ./bin/wof-pip-server -port 8300 -allow-extras -cache-all -mode sqlite ~/whosonfirst-data-sqlite/*-20171212.db

Here is a summary.

  • extras=name:jpn_x_preferred
    • country and counry have name:jpn_x_preferred
    • region does not
  • extras=name:jpn_x_preferred,name:eng_x_preferred
    • country, region and counry have name:jpn_x_preferred and name:eng_x_preferred
  • extras=name:
    • country and county have name:
    • region does not

Just use gounit.

 curl 'http://localhost:8300?latitude=36.1&longitude=140.08&extras=name:jpn_x_preferred' | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1974  100  1974    0     0    228      0  0:00:08  0:00:08 --:--:--   580
{
    "places": [
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.096175,
            "mz:longitude": 140.072981,
            "mz:max_latitude": 36.2361335754395,
            "mz:max_longitude": 140.17239379882795,
            "mz:min_latitude": 35.94746398925778,
            "mz:min_longitude": 139.99589538574196,
            "mz:uri": "https://whosonfirst.mapzen.com/data/890/519/957/890519957.geojson",
            "name:jpn_x_preferred": [
                "\u3064\u304f\u3070\u5e02"
            ],
            "wof:country": "JP",
            "wof:id": 890519957,
            "wof:lastmodified": 1505433065,
            "wof:name": "Tsukuba Shi",
            "wof:parent_id": 85672801,
            "wof:path": "890/519/957/890519957.geojson",
            "wof:placetype": "county",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.158025,
            "mz:longitude": 140.307438,
            "mz:max_latitude": 36.94546508789058,
            "mz:max_longitude": 140.85189819335895,
            "mz:min_latitude": 35.73959732055664,
            "mz:min_longitude": 139.68789672851597,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/728/01/85672801.geojson",
            "wof:country": "JP",
            "wof:id": 85672801,
            "wof:lastmodified": 1505432325,
            "wof:name": "Ibaraki",
            "wof:parent_id": 85632429,
            "wof:path": "856/728/01/85672801.geojson",
            "wof:placetype": "region",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.13793,
            "mz:longitude": 138.441899,
            "mz:max_latitude": 45.52288818400007,
            "mz:max_longitude": 153.98706054700006,
            "mz:min_latitude": 20.42288970900006,
            "mz:min_longitude": 122.93458557100007,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/324/29/85632429.geojson",
            "name:jpn_x_preferred": [
                "\u65e5\u672c"
            ],
            "wof:country": "JP",
            "wof:id": 85632429,
            "wof:lastmodified": 1509142777,
            "wof:name": "Japan",
            "wof:parent_id": 102191569,
            "wof:path": "856/324/29/85632429.geojson",
            "wof:placetype": "country",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        }
    ]
}
% curl 'http://localhost:8300?latitude=36.1&longitude=140.08&extras=name:jpn_x_preferred,name:eng_x_preferred' | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2125    0  2125    0     0   111k      0 --:--:-- --:--:-- --:--:--  115k
{
    "places": [
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.158025,
            "mz:longitude": 140.307438,
            "mz:max_latitude": 36.94546508789058,
            "mz:max_longitude": 140.85189819335895,
            "mz:min_latitude": 35.73959732055664,
            "mz:min_longitude": 139.68789672851597,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/728/01/85672801.geojson",
            "name:eng_x_preferred": [
                "Ibaraki Prefecture"
            ],
            "name:jpn_x_preferred": [
                "\u8328\u57ce\u770c"
            ],
            "wof:country": "JP",
            "wof:id": 85672801,
            "wof:lastmodified": 1505432325,
            "wof:name": "Ibaraki",
            "wof:parent_id": 85632429,
            "wof:path": "856/728/01/85672801.geojson",
            "wof:placetype": "region",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.096175,
            "mz:longitude": 140.072981,
            "mz:max_latitude": 36.2361335754395,
            "mz:max_longitude": 140.17239379882795,
            "mz:min_latitude": 35.94746398925778,
            "mz:min_longitude": 139.99589538574196,
            "mz:uri": "https://whosonfirst.mapzen.com/data/890/519/957/890519957.geojson",
            "name:eng_x_preferred": [
                "Tsukuba"
            ],
            "name:jpn_x_preferred": [
                "\u3064\u304f\u3070\u5e02"
            ],
            "wof:country": "JP",
            "wof:id": 890519957,
            "wof:lastmodified": 1505433065,
            "wof:name": "Tsukuba Shi",
            "wof:parent_id": 85672801,
            "wof:path": "890/519/957/890519957.geojson",
            "wof:placetype": "county",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.13793,
            "mz:longitude": 138.441899,
            "mz:max_latitude": 45.52288818400007,
            "mz:max_longitude": 153.98706054700006,
            "mz:min_latitude": 20.42288970900006,
            "mz:min_longitude": 122.93458557100007,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/324/29/85632429.geojson",
            "name:eng_x_preferred": [
                "Japan"
            ],
            "name:jpn_x_preferred": [
                "\u65e5\u672c"
            ],
            "wof:country": "JP",
            "wof:id": 85632429,
            "wof:lastmodified": 1509142777,
            "wof:name": "Japan",
            "wof:parent_id": 102191569,
            "wof:path": "856/324/29/85632429.geojson",
            "wof:placetype": "country",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        }
    ]
}
curl 'http://localhost:8300?latitude=36.1&longitude=140.08&extras=name:' | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13641    0 13641    0     0   354k      0 --:--:-- --:--:-- --:--:--  360k
{
    "places": [
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.158025,
            "mz:longitude": 140.307438,
            "mz:max_latitude": 36.94546508789058,
            "mz:max_longitude": 140.85189819335895,
            "mz:min_latitude": 35.73959732055664,
            "mz:min_longitude": 139.68789672851597,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/728/01/85672801.geojson",
            "wof:country": "JP",
            "wof:id": 85672801,
            "wof:lastmodified": 1505432325,
            "wof:name": "Ibaraki",
            "wof:parent_id": 85632429,
            "wof:path": "856/728/01/85672801.geojson",
            "wof:placetype": "region",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.096175,
            "mz:longitude": 140.072981,
            "mz:max_latitude": 36.2361335754395,
            "mz:max_longitude": 140.17239379882795,
            "mz:min_latitude": 35.94746398925778,
            "mz:min_longitude": 139.99589538574196,
            "mz:uri": "https://whosonfirst.mapzen.com/data/890/519/957/890519957.geojson",
            "name:eng_x_preferred": [
                "Tsukuba"
            ],
            "name:eng_x_variant": [
                "Tukubasi",
                "Tsukuba Shi"
            ],
            "name:jpn_x_preferred": [
                "\u3064\u304f\u3070\u5e02"
            ],
            "name:jpn_x_variant": [
                "\u3064\u304f\u3070\u3057",
                "\u3064\u304f\u3070"
            ],
            "name:unk_x_variant": [
                "Tsukuba-shi"
            ],
            "wof:country": "JP",
            "wof:id": 890519957,
            "wof:lastmodified": 1505433065,
            "wof:name": "Tsukuba Shi",
            "wof:parent_id": 85672801,
            "wof:path": "890/519/957/890519957.geojson",
            "wof:placetype": "county",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        },
        {
            "mz:is_ceased": -1,
            "mz:is_current": 1,
            "mz:is_deprecated": 0,
            "mz:is_superseded": 0,
            "mz:is_superseding": 0,
            "mz:latitude": 36.13793,
            "mz:longitude": 138.441899,
            "mz:max_latitude": 45.52288818400007,
            "mz:max_longitude": 153.98706054700006,
            "mz:min_latitude": 20.42288970900006,
            "mz:min_longitude": 122.93458557100007,
            "mz:uri": "https://whosonfirst.mapzen.com/data/856/324/29/85632429.geojson",
            "name:aar_x_preferred": [
                "Japan"
            ],
            "name:abk_x_preferred": [
                "\u0418\u0430\u043f\u043e\u043d\u0438\u0430"
            ],
            "name:ace_x_preferred": [
                "Jeupun"
            ],
            "name:ady_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u0435"
            ],
            "name:afr_x_preferred": [
                "Japan"
            ],
            "name:aka_x_preferred": [
                "Gyapan"
            ],
            "name:als_x_preferred": [
                "Japan"
            ],
            "name:amh_x_preferred": [
                "\u1303\u1353\u1295"
            ],
            "name:ang_x_preferred": [
                "Iapan"
            ],
            "name:ara_x_preferred": [
                "\u0627\u0644\u064a\u0627\u0628\u0627\u0646"
            ],
            "name:arc_x_preferred": [
                "\u071d\u0726\u0722"
            ],
            "name:arg_x_preferred": [
                "Chap\u00f3n"
            ],
            "name:arz_x_preferred": [
                "\u0627\u0644\u064a\u0627\u0628\u0627\u0646"
            ],
            "name:asm_x_preferred": [
                "\u099c\u09be\u09aa\u09be\u09a8"
            ],
            "name:ast_x_preferred": [
                "Xap\u00f3n"
            ],
            "name:aym_x_preferred": [
                "Nihun"
            ],
            "name:azb_x_preferred": [
                "\u0698\u0627\u067e\u0648\u0646"
            ],
            "name:aze_x_preferred": [
                "Yaponiya"
            ],
            "name:bak_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:bam_x_preferred": [
                "Zap\u0254n"
            ],
            "name:bar_x_preferred": [
                "Japan"
            ],
            "name:bcl_x_preferred": [
                "Hapon"
            ],
            "name:bel_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0456\u044f"
            ],
            "name:bel_x_variant": [
                "\u042f\u043f\u043e\u043d\u0456\u044f"
            ],
            "name:ben_x_preferred": [
                "\u099c\u09be\u09aa\u09be\u09a8"
            ],
            "name:bih_x_preferred": [
                "\u091c\u093e\u092a\u093e\u0928"
            ],
            "name:bjn_x_preferred": [
                "Japang"
            ],
            "name:bod_x_preferred": [
                "\u0f49\u0f72\u0f0b\u0f67\u0f7c\u0f44\u0f0b\u0f0d"
            ],
            "name:bod_x_variant": [
                "\u0f62\u0f72\u0f0b\u0f54\u0f72\u0f53\u0f0b"
            ],
            "name:bos_x_preferred": [
                "Japan"
            ],
            "name:bpy_x_preferred": [
                "\u099c\u09be\u09aa\u09be\u09a8"
            ],
            "name:bre_x_preferred": [
                "Japan"
            ],
            "name:bre_x_variant": [
                "Japon"
            ],
            "name:bug_x_preferred": [
                "\u1a0d\u1a1b\u1a04"
            ],
            "name:bul_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:bxr_x_preferred": [
                "\u042f\u043f\u043e\u043d \u0423\u043b\u0430\u0441"
            ],
            "name:cat_x_preferred": [
                "Jap\u00f3"
            ],
            "name:cbk_zam_x_preferred": [
                "Jap\u00f3n"
            ],
            "name:cdo_x_preferred": [
                "N\u012dk-bu\u014dng"
            ],
            "name:ceb_x_preferred": [
                "Hapon"
            ],
            "name:ces_x_preferred": [
                "Japonsko"
            ],
            "name:cha_x_preferred": [
                "Chapan"
            ],
            "name:che_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438"
            ],
            "name:cho_x_preferred": [
                "Japan"
            ],
            "name:chr_x_preferred": [
                "\u13e3\u13e9\u13c2\u13cf"
            ],
            "name:chu_x_preferred": [
                "\ua656\u043f\u0461\u043d\u0457\ua657"
            ],
            "name:chv_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438"
            ],
            "name:chy_x_preferred": [
                "Japan"
            ],
            "name:ckb_x_preferred": [
                "\u0698\u0627\u067e\u06c6\u0646"
            ],
            "name:cor_x_preferred": [
                "Nihon"
            ],
            "name:cor_x_variant": [
                "Japan"
            ],
            "name:crh_x_preferred": [
                "Yaponiya"
            ],
            "name:csb_x_preferred": [
                "Jap\u00f2\u0144sk\u00f4"
            ],
            "name:cym_x_preferred": [
                "Japan"
            ],
            "name:cym_x_variant": [
                "Siapan"
            ],
            "name:cze_x_preferred": [
                "Japonsko"
            ],
            "name:dan_x_preferred": [
                "Japan"
            ],
            "name:deu_x_preferred": [
                "Japan"
            ],
            "name:diq_x_preferred": [
                "Japonya"
            ],
            "name:div_x_preferred": [
                "\u0796\u07a6\u0795\u07a7\u0782\u07aa"
            ],
            "name:dsb_x_preferred": [
                "Japa\u0144ska"
            ],
            "name:dzo_x_preferred": [
                "\u0f47\u0f71\u0f0b\u0f54\u0f71\u0f53\u0f0d"
            ],
            "name:dzo_x_variant": [
                "\u0f47\u0f0b\u0f54\u0f71\u0f53"
            ],
            "name:ell_x_preferred": [
                "\u0399\u03b1\u03c0\u03c9\u03bd\u03af\u03b1"
            ],
            "name:eng_x_preferred": [
                "Japan"
            ],
            "name:eng_x_unknown": [
                "JP",
                "JPN"
            ],
            "name:eng_x_variant": [
                "Ilbon",
                "Japanese",
                "Nihon",
                "Nihon-koku",
                "Nippon",
                "Nippon-koku"
            ],
            "name:epo_x_preferred": [
                "Japanio"
            ],
            "name:epo_x_variant": [
                "Japanujo"
            ],
            "name:est_x_preferred": [
                "Jaapan"
            ],
            "name:eus_x_preferred": [
                "Japonia"
            ],
            "name:ewe_x_preferred": [
                "Japan"
            ],
            "name:ewe_x_variant": [
                "Dzapan nutome"
            ],
            "name:ext_x_preferred": [
                "Jap\u00f3n"
            ],
            "name:fao_x_preferred": [
                "Japan"
            ],
            "name:fas_x_preferred": [
                "\u0698\u0627\u067e\u0646"
            ],
            "name:fin_x_preferred": [
                "Japani"
            ],
            "name:fin_x_variant": [
                "Japanin"
            ],
            "name:fra_x_preferred": [
                "Japon"
            ],
            "name:frp_x_preferred": [
                "J\u00b7apon"
            ],
            "name:frr_x_preferred": [
                "Japan"
            ],
            "name:fry_x_preferred": [
                "Japan"
            ],
            "name:ful_x_preferred": [
                "Sapoo"
            ],
            "name:fur_x_preferred": [
                "Gjapon"
            ],
            "name:gag_x_preferred": [
                "Yaponiya"
            ],
            "name:gan_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:gla_x_preferred": [
                "An Iapan"
            ],
            "name:gle_x_preferred": [
                "An tSeap\u00e1in"
            ],
            "name:glg_x_preferred": [
                "Xap\u00f3n"
            ],
            "name:glg_x_variant": [
                "Xap\u00f3n - \u65e5\u672c"
            ],
            "name:glv_x_preferred": [
                "Yn \u00c7hapaan"
            ],
            "name:gom_x_preferred": [
                "\u091c\u092a\u093e\u0928"
            ],
            "name:grn_x_preferred": [
                "Hap\u00f5"
            ],
            "name:guj_x_preferred": [
                "\u0a9c\u0abe\u0aaa\u0abe\u0aa8"
            ],
            "name:hak_x_preferred": [
                "Ngi\u030dt-p\u00fan"
            ],
            "name:hat_x_preferred": [
                "Japon"
            ],
            "name:hau_x_preferred": [
                "Japan"
            ],
            "name:haw_x_preferred": [
                "I\u0101pana"
            ],
            "name:hbs_x_preferred": [
                "Japan"
            ],
            "name:heb_x_preferred": [
                "\u05d9\u05e4\u05df"
            ],
            "name:hif_x_preferred": [
                "Japan"
            ],
            "name:hin_x_preferred": [
                "\u091c\u093e\u092a\u093e\u0928"
            ],
            "name:hrv_x_preferred": [
                "Japan"
            ],
            "name:hsb_x_preferred": [
                "Japanska"
            ],
            "name:hun_x_preferred": [
                "Jap\u00e1n"
            ],
            "name:hye_x_preferred": [
                "\u0543\u0561\u057a\u0578\u0576\u056b\u0561"
            ],
            "name:ido_x_preferred": [
                "Japonia"
            ],
            "name:iii_x_preferred": [
                "\ua3dd\ua02a"
            ],
            "name:iku_x_preferred": [
                "\u14c3\u1449\u140a\u14d0"
            ],
            "name:ile_x_preferred": [
                "Japan"
            ],
            "name:ilo_x_preferred": [
                "Hapon"
            ],
            "name:ina_x_preferred": [
                "Japon"
            ],
            "name:ind_x_preferred": [
                "Jepang"
            ],
            "name:isl_x_preferred": [
                "Japan"
            ],
            "name:ita_x_preferred": [
                "Giappone"
            ],
            "name:jam_x_preferred": [
                "Japan"
            ],
            "name:jav_x_preferred": [
                "Jepang"
            ],
            "name:jbo_x_preferred": [
                "pongu'e"
            ],
            "name:jbo_x_variant": [
                "pongue"
            ],
            "name:jpn_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:jpn_x_variant": [
                "\u306b\u3063\u307d\u3093",
                "\u306b\u3063\u307d\u3093\u3053\u304f",
                "\u306b\u307b\u3093",
                "\u306b\u307b\u3093\u3053\u304f",
                "\u30cb\u30c3\u30dd\u30f3",
                "\u30cb\u30c3\u30dd\u30f3\u30b3\u30af",
                "\u30cb\u30db\u30f3",
                "\u30cb\u30db\u30f3\u30b3\u30af",
                "\u65e5\u672c\u56fd"
            ],
            "name:kaa_x_preferred": [
                "Yaponiya"
            ],
            "name:kab_x_preferred": [
                "Japun"
            ],
            "name:kal_x_preferred": [
                "Japani"
            ],
            "name:kan_x_preferred": [
                "\u0c9c\u0caa\u0cbe\u0ca8\u0ccd"
            ],
            "name:kat_x_preferred": [
                "\u10d8\u10d0\u10de\u10dd\u10dc\u10d8\u10d0"
            ],
            "name:kaz_x_preferred": [
                "\u0416\u0430\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:kbd_x_preferred": [
                "\u042f\u043f\u043e\u043d"
            ],
            "name:khm_x_preferred": [
                "\u1787\u1794\u17c9\u17bb\u1793"
            ],
            "name:kik_x_preferred": [
                "Japan"
            ],
            "name:kik_x_variant": [
                "Njabani"
            ],
            "name:kin_x_preferred": [
                "Ubuyapani"
            ],
            "name:kir_x_preferred": [
                "\u0416\u0430\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:koi_x_preferred": [
                "\u041d\u0438\u043f\u043f\u043e\u043d"
            ],
            "name:kom_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:kon_x_preferred": [
                "Japan"
            ],
            "name:kor_x_preferred": [
                "\uc77c\ubcf8"
            ],
            "name:krc_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:kua_x_preferred": [
                "Japan"
            ],
            "name:kur_x_preferred": [
                "Japon"
            ],
            "name:kur_x_variant": [
                "Japonya",
                "\u0698\u0627\u067e\u06c6\u0646"
            ],
            "name:lao_x_preferred": [
                "\u0e9b\u0eb0\u0ec0\u0e97\u0e94\u0e8d\u0eb5\u0ec8\u0e9b\u0eb8\u0ec8\u0e99"
            ],
            "name:lao_x_variant": [
                "\u0e8d\u0eb5\u0ec8\u0e9b\u0ec8\u0eb8\u0e99"
            ],
            "name:lat_x_preferred": [
                "Iaponia"
            ],
            "name:lav_x_preferred": [
                "Jap\u0101na"
            ],
            "name:lbe_x_preferred": [
                "Japan"
            ],
            "name:lez_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:lij_x_preferred": [
                "Giappon"
            ],
            "name:lim_x_preferred": [
                "Japan"
            ],
            "name:lin_x_preferred": [
                "Zap\u0254\u0301"
            ],
            "name:lin_x_variant": [
                "Zap\u0254"
            ],
            "name:lit_x_preferred": [
                "Japonija"
            ],
            "name:lmo_x_preferred": [
                "Giapun"
            ],
            "name:lrc_x_preferred": [
                "\u062c\u0627\u067e\u0648\u0646"
            ],
            "name:ltg_x_preferred": [
                "Japoneja"
            ],
            "name:ltz_x_preferred": [
                "Japan"
            ],
            "name:lub_x_preferred": [
                "Japu"
            ],
            "name:lug_x_preferred": [
                "Japani"
            ],
            "name:lzh_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:mah_x_preferred": [
                "Japan"
            ],
            "name:mal_x_preferred": [
                "\u0d1c\u0d2a\u0d4d\u0d2a\u0d3e\u0d7b"
            ],
            "name:mar_x_preferred": [
                "\u091c\u092a\u093e\u0928"
            ],
            "name:mdf_x_preferred": [
                "\u042f\u043f\u043e\u043d\u043c\u0430\u0441\u0442\u043e\u0440"
            ],
            "name:mhr_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u0439"
            ],
            "name:min_x_preferred": [
                "Japang"
            ],
            "name:mkd_x_preferred": [
                "\u0408\u0430\u043f\u043e\u043d\u0438\u0458\u0430"
            ],
            "name:mlg_x_preferred": [
                "Japana"
            ],
            "name:mlt_x_preferred": [
                "\u0120appun"
            ],
            "name:mon_x_preferred": [
                "\u042f\u043f\u043e\u043d"
            ],
            "name:mri_x_preferred": [
                "Nipono"
            ],
            "name:mrj_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438"
            ],
            "name:msa_x_preferred": [
                "Jepun"
            ],
            "name:mus_x_preferred": [
                "Japan"
            ],
            "name:mwl_x_preferred": [
                "Japon"
            ],
            "name:mya_x_preferred": [
                "\u1002\u103b\u1015\u1014\u103a\u1014\u102d\u102f\u1004\u103a\u1004\u1036"
            ],
            "name:mya_x_variant": [
                "\u1002\u103b\u1015\u1014\u103a"
            ],
            "name:myv_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f \u041c\u0430\u0441\u0442\u043e\u0440"
            ],
            "name:mzn_x_preferred": [
                "\u062c\u0627\u067e\u0648\u0646"
            ],
            "name:nah_x_preferred": [
                "Xapon"
            ],
            "name:nan_x_preferred": [
                "Ji\u030dt-p\u00fan"
            ],
            "name:nap_x_preferred": [
                "Giappone"
            ],
            "name:nau_x_preferred": [
                "Djapan"
            ],
            "name:nav_x_preferred": [
                "Bin\u00e1\u00e1\u02bc\u00e1daa\u0142ts\u02bc\u00f3z\u00ed Dine\u02bc\u00e9 Bik\u00e9yah"
            ],
            "name:nav_x_variant": [
                "Bina\u02bcadaa\u0142tz\u00f3z\u00ed Din\u00e9\u02bci\u02bc Bik\u00e9yah"
            ],
            "name:nde_x_preferred": [
                "Japan"
            ],
            "name:ndo_x_preferred": [
                "Japan"
            ],
            "name:nds_nld_x_preferred": [
                "Japan"
            ],
            "name:nds_x_preferred": [
                "Japan"
            ],
            "name:nep_x_preferred": [
                "\u091c\u093e\u092a\u093e\u0928"
            ],
            "name:new_x_preferred": [
                "\u091c\u093e\u092a\u093e\u0928"
            ],
            "name:nld_x_preferred": [
                "Japan"
            ],
            "name:nno_x_preferred": [
                "Japan"
            ],
            "name:nob_x_preferred": [
                "Japan"
            ],
            "name:nor_x_preferred": [
                "Japan"
            ],
            "name:nov_x_preferred": [
                "Japan"
            ],
            "name:nrm_x_preferred": [
                "Japon"
            ],
            "name:nso_x_preferred": [
                "Japane"
            ],
            "name:oci_x_preferred": [
                "Japon"
            ],
            "name:olo_x_preferred": [
                "Japounii"
            ],
            "name:ori_x_preferred": [
                "\u0b1c\u0b3e\u0b2a\u0b3e\u0b28"
            ],
            "name:ori_x_variant": [
                "\u0b1c\u0b3e\u0b2a\u0b3e\u0b28\u0b4d"
            ],
            "name:orm_x_preferred": [
                "Jaappaan"
            ],
            "name:orm_x_variant": [
                "Japan"
            ],
            "name:oss_x_preferred": [
                "\u042f\u043f\u043e\u043d"
            ],
            "name:pam_x_preferred": [
                "Hapon"
            ],
            "name:pan_x_preferred": [
                "\u0a1c\u0a2a\u0a3e\u0a28"
            ],
            "name:pap_x_preferred": [
                "Hapon"
            ],
            "name:pcd_x_preferred": [
                "Japon"
            ],
            "name:pdc_x_preferred": [
                "Japan"
            ],
            "name:pih_x_preferred": [
                "Japan"
            ],
            "name:pli_x_preferred": [
                "\u091c\u093e\u092a\u093e\u0928"
            ],
            "name:pms_x_preferred": [
                "Giapon"
            ],
            "name:pnb_x_preferred": [
                "\u062c\u067e\u0627\u0646"
            ],
            "name:pol_x_preferred": [
                "Japonia"
            ],
            "name:por_x_preferred": [
                "Jap\u00e3o"
            ],
            "name:por_x_variant": [
                "Jap\u00e3o"
            ],
            "name:pus_x_preferred": [
                "\u062c\u0627\u067e\u0627\u0646"
            ],
            "name:que_x_preferred": [
                "Nihun"
            ],
            "name:roh_x_preferred": [
                "Giapun"
            ],
            "name:ron_x_preferred": [
                "Japonia"
            ],
            "name:ron_x_variant": [
                "\u0416\u0430\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:rue_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0456\u044f"
            ],
            "name:rum_x_preferred": [
                "Japonia"
            ],
            "name:run_x_preferred": [
                "Ubuyapani"
            ],
            "name:rus_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:sag_x_preferred": [
                "Zap\u00f6on"
            ],
            "name:sah_x_preferred": [
                "\u0414\u044c\u043e\u043f\u043f\u0443\u043e\u043d"
            ],
            "name:san_x_preferred": [
                "\u091c\u092a\u093e\u0928\u094d"
            ],
            "name:scn_x_preferred": [
                "Giappuni"
            ],
            "name:sco_x_preferred": [
                "Japan"
            ],
            "name:sgs_x_preferred": [
                "Japuon\u0117j\u0117"
            ],
            "name:sin_x_preferred": [
                "\u0da2\u0db4\u0dcf\u0db1\u0dba"
            ],
            "name:slk_x_preferred": [
                "Japonsko"
            ],
            "name:slv_x_preferred": [
                "Japonska"
            ],
            "name:sme_x_preferred": [
                "J\u00e1hpan"
            ],
            "name:sme_x_variant": [
                "Jap\u00e1na"
            ],
            "name:smo_x_preferred": [
                "Iapani"
            ],
            "name:sna_x_preferred": [
                "Japan"
            ],
            "name:snd_x_preferred": [
                "\u062c\u0627\u067e\u0627\u0646"
            ],
            "name:som_x_preferred": [
                "Jabaan"
            ],
            "name:som_x_variant": [
                "Jabbaan"
            ],
            "name:sot_x_preferred": [
                "Japane"
            ],
            "name:spa_x_preferred": [
                "Jap\u00f3n"
            ],
            "name:sqi_x_preferred": [
                "Japonia"
            ],
            "name:sqi_x_variant": [
                "Japoni"
            ],
            "name:srd_x_preferred": [
                "Giappone"
            ],
            "name:srn_x_preferred": [
                "Japan"
            ],
            "name:srp_x_preferred": [
                "\u0408\u0430\u043f\u0430\u043d"
            ],
            "name:ssw_x_preferred": [
                "IJaphani"
            ],
            "name:stq_x_preferred": [
                "Japan"
            ],
            "name:sun_x_preferred": [
                "Jepang"
            ],
            "name:swa_x_preferred": [
                "Japani"
            ],
            "name:swa_x_variant": [
                "Ujapani"
            ],
            "name:swe_x_preferred": [
                "Japan"
            ],
            "name:szl_x_preferred": [
                "Jap\u016f\u0144ijo"
            ],
            "name:tah_x_preferred": [
                "T\u0101p\u014dn\u0113"
            ],
            "name:tam_x_preferred": [
                "\u0b9c\u0baa\u0bcd\u0baa\u0bbe\u0ba9\u0bcd"
            ],
            "name:tat_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:tel_x_preferred": [
                "\u0c1c\u0c2a\u0c3e\u0c28\u0c4d"
            ],
            "name:tet_x_preferred": [
                "Japaun"
            ],
            "name:tgk_x_preferred": [
                "\u0416\u043e\u043f\u0443\u043d"
            ],
            "name:tgl_x_preferred": [
                "Hapon"
            ],
            "name:tha_x_preferred": [
                "\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e0d\u0e35\u0e48\u0e1b\u0e38\u0e48\u0e19"
            ],
            "name:tha_x_variant": [
                "\u0e0d\u0e35\u0e48\u0e1b\u0e38\u0e48\u0e19"
            ],
            "name:tir_x_preferred": [
                "\u1303\u1353\u1295"
            ],
            "name:tir_x_variant": [
                "Japan"
            ],
            "name:ton_x_preferred": [
                "Siapani"
            ],
            "name:tpi_x_preferred": [
                "Siapan"
            ],
            "name:tso_x_preferred": [
                "Japan"
            ],
            "name:tuk_x_preferred": [
                "\u00ddaponi\u00fda"
            ],
            "name:tum_x_preferred": [
                "Japan"
            ],
            "name:tur_x_preferred": [
                "Japonya"
            ],
            "name:twi_x_preferred": [
                "Yapan"
            ],
            "name:udm_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:uig_x_preferred": [
                "\u064a\u0627\u067e\u0648\u0646\u0649\u064a\u06d5"
            ],
            "name:ukr_x_preferred": [
                "\u042f\u043f\u043e\u043d\u0456\u044f"
            ],
            "name:und_x_preferred": [
                "Japonska"
            ],
            "name:unk_x_variant": [
                "Nihon"
            ],
            "name:urd_x_preferred": [
                "\u062c\u0627\u067e\u0627\u0646"
            ],
            "name:urd_x_variant": [
                "\u0646\u06cc\u06c1\u0648\u0646"
            ],
            "name:uzb_x_preferred": [
                "Yaponiya"
            ],
            "name:uzb_x_variant": [
                "\u042f\u043f\u043e\u043d\u0438\u044f"
            ],
            "name:vec_x_preferred": [
                "Giap\u00f2n"
            ],
            "name:ven_x_preferred": [
                "Japan"
            ],
            "name:vep_x_preferred": [
                "Japonii"
            ],
            "name:vie_x_preferred": [
                "Nh\u1eadt B\u1ea3n"
            ],
            "name:vls_x_preferred": [
                "Japan"
            ],
            "name:vol_x_preferred": [
                "Yap\u00e4n"
            ],
            "name:war_x_preferred": [
                "Hapon"
            ],
            "name:wol_x_preferred": [
                "Sapo\u014b"
            ],
            "name:wuu_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:xal_x_preferred": [
                "\u041d\u0438x\u0443\u0443\u0434\u0438\u043d \u041d\u0443\u0442\u0433"
            ],
            "name:xho_x_preferred": [
                "IJapani"
            ],
            "name:xmf_x_preferred": [
                "\u10d8\u10d0\u10de\u10dd\u10dc\u10d8\u10d0"
            ],
            "name:yid_x_preferred": [
                "\u05d9\u05d0\u05e4\u05d0\u05df"
            ],
            "name:yid_x_variant": [
                "\u05d9\u05d0\u05b7\u05e4\u05bc\u05d0\u05b7\u05df"
            ],
            "name:yor_x_preferred": [
                "Japan"
            ],
            "name:yor_x_variant": [
                "Or\u00edl\u1eb9\u0301\u00e8de Japani"
            ],
            "name:yue_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:zea_x_preferred": [
                "Japan"
            ],
            "name:zha_x_preferred": [
                "Nditbonj"
            ],
            "name:zho_min_nan_x_preferred": [
                "Ji\u030dt-p\u00fan"
            ],
            "name:zho_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:zho_x_variant": [
                "\u65e5\u672c",
                "\u65e5\u672c\u570b"
            ],
            "name:zho_yue_x_preferred": [
                "\u65e5\u672c"
            ],
            "name:zul_x_preferred": [
                "IJapani"
            ],
            "name:zul_x_variant": [
                "i-Japan"
            ],
            "wof:country": "JP",
            "wof:id": 85632429,
            "wof:lastmodified": 1509142777,
            "wof:name": "Japan",
            "wof:parent_id": 102191569,
            "wof:path": "856/324/29/85632429.geojson",
            "wof:placetype": "country",
            "wof:repo": "whosonfirst-data",
            "wof:superseded_by": [],
            "wof:supersedes": []
        }
    ]
}

Sometimes the pip-server shows the following error.

2017/12/21 11:05:34 ERROR sql: no rows in result set

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Interesting. That suggests there might be some contention reading from the sqlite databases. I will investigate.

sqlite> SELECT * FROM names WHERE id=85672801 AND language="jpn";
85672801|region|JP|jpn||||||x_preferred|茨城県|1505432325
85672801|region|JP|jpn||||||x_variant|いばらき|1505432325
85672801|region|JP|jpn||||||x_variant|いばらきけん|1505432325
85672801|region|JP|jpn||||||x_variant|いばらき・けん|1505432325
85672801|region|JP|jpn||||||x_variant|茨城|1505432325
85672801|region|JP|jpn||||||x_variant|イバラキ|1505432325
85672801|region|JP|jpn||||||x_variant|イバラキケン|1505432325

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

Notes to self:

sqlite3 whosonfirst-data-latest.db
SQLite version 3.16.0 2016-11-04 19:09:39
Enter ".help" for usage hints.
sqlite> SELECT json_extract(body, '$.properties."name:jpn_x_preferred"') FROM geojson WHERE id=85672801;
["\u8328\u57ce\u770c"]

from go-whosonfirst-pip-v2.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on June 19, 2024

To err is human, to test is professional.

We need to write unit tests.

from go-whosonfirst-pip-v2.

thisisaaronland avatar thisisaaronland commented on June 19, 2024

There are many things we'd like to do but it's a small team with a large remit so some things get pushed down the stack. If you'd like to contribute unit tests they'd be welcome!

from go-whosonfirst-pip-v2.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on June 19, 2024

I wrote a very simple test and sent a PR. Since I'm not familiar with this pip-server, I couldn't write initialization code for the server and I couldn't compile it. There must be many syntax errors.

Our team is also very small. This is my very best.

from go-whosonfirst-pip-v2.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on June 19, 2024

I did by myself. Thanks.

from go-whosonfirst-pip-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.