Skip to content

Commit

Permalink
Minfy fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Mace committed Jan 18, 2018
1 parent b96618f commit 5868fa6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 456 deletions.
51 changes: 1 addition & 50 deletions services-geocoding/src/test/resources/forward_feature_valid.json
Original file line number Diff line number Diff line change
@@ -1,50 +1 @@
{
"id": "address.3982178573139850",
"type": "Feature",
"place_type": [
"address"
],
"relevance": 1,
"properties": {},
"text": "Pennsylvania Ave NW",
"place_name": "1600 Pennsylvania Ave NW, Washington, District of Columbia 20006, United States",
"center": [
-77.036543,
38.897702
],
"geometry": {
"type": "Point",
"coordinates": [
-77.036543,
38.897702
]
},
"address": "1600",
"context": [
{
"id": "neighborhood.291451",
"text": "Downtown"
},
{
"id": "postcode.8031694603652840",
"text": "20006"
},
{
"id": "place.11387590027246050",
"wikidata": "Q61",
"text": "Washington"
},
{
"id": "region.3403",
"short_code": "US-DC",
"wikidata": "Q61",
"text": "District of Columbia"
},
{
"id": "country.3145",
"short_code": "us",
"wikidata": "Q30",
"text": "United States"
}
]
}
{"id":"address.3982178573139850","type":"Feature","place_type":["address"],"relevance":1,"properties":{},"text":"Pennsylvania Ave NW","place_name":"1600 Pennsylvania Ave NW, Washington, District of Columbia 20006, United States","center":[-77.036543,38.897702],"geometry":{"type":"Point","coordinates":[-77.036543,38.897702]},"address":"1600","context":[{"id":"neighborhood.291451","text":"Downtown"},{"id":"postcode.8031694603652840","text":"20006"},{"id":"place.11387590027246050","wikidata":"Q61","text":"Washington"},{"id":"region.3403","short_code":"US-DC","wikidata":"Q61","text":"District of Columbia"},{"id":"country.3145","short_code":"us","wikidata":"Q30","text":"United States"}]}
12 changes: 1 addition & 11 deletions services-geocoding/src/test/resources/forward_invalid.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"type": "FeatureCollection",
"query": [
"sandy",
"island",
"new",
"caledonia"
],
"features": [],
"attribution": "NOTICE: © 2016 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained."
}
{"type":"FeatureCollection","query":["sandy","island","new","caledonia"],"features":[],"attribution":"NOTICE: © 2016 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained."}
136 changes: 1 addition & 135 deletions services-geocoding/src/test/resources/forward_valid_zh.json
Original file line number Diff line number Diff line change
@@ -1,135 +1 @@
{
"type": "FeatureCollection",
"query": [
"hainan"
],
"features": [
{
"id": "place.10514057239276310",
"type": "Feature",
"text": "海南区",
"place_name": "中国内蒙古乌海市海南区",
"relevance": 0.99,
"properties": {
"wikidata": null
},
"bbox": [
106.733581544,
39.308357239,
107.025123596,
39.6012458800001
],
"center": [
106.820552,
39.458115
],
"geometry": {
"type": "Point",
"coordinates": [
106.820552,
39.458115
]
},
"context": [
{
"id": "district.119561774838770",
"text": "乌海市",
"language": "zh"
},
{
"id": "region.12259570057963950",
"text": "内蒙古",
"language": "zh",
"short_code": "CN-15",
"wikidata": "Q41079"
},
{
"id": "country.6702069377157440",
"text": "中国",
"language": "zh",
"short_code": "cn",
"wikidata": "Q148"
}
]
},
{
"id": "region.5200090080520630",
"type": "Feature",
"text": "海南省",
"place_name": "中国海南省",
"relevance": 0.99,
"properties": {
"short_code": "CN-46",
"wikidata": "Q42200"
},
"bbox": [
108.515578237005,
18.0698119320092,
111.134676114995,
20.2631455569989
],
"center": [
109.5771,
19.164822
],
"geometry": {
"type": "Point",
"coordinates": [
109.5771,
19.164822
]
},
"context": [
{
"id": "country.6702069377157440",
"text": "中国",
"language": "zh",
"short_code": "cn",
"wikidata": "Q148"
}
]
},
{
"id": "district.12821841197016360",
"type": "Feature",
"text": "海南藏族自治州",
"place_name": "中国青海省海南藏族自治州",
"relevance": 0.99,
"properties": {},
"bbox": [
98.930977,
34.6406900000001,
101.797241,
37.141197
],
"center": [
100.6214,
36.2742
],
"geometry": {
"type": "Point",
"coordinates": [
100.6214,
36.2742
]
},
"context": [
{
"id": "region.11017319148773520",
"text": "青海省",
"language": "zh",
"short_code": "CN-63",
"wikidata": "Q45833"
},
{
"id": "country.6702069377157440",
"text": "中国",
"language": "zh",
"short_code": "cn",
"wikidata": "Q148"
}
]
}
],
"attribution": "NOTICE: © 2016 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained."
}
{"type":"FeatureCollection","query":["hainan"],"features":[{"id":"place.10514057239276310","type":"Feature","text":"海南区","place_name":"中国内蒙古乌海市海南区","relevance":0.99,"properties":{"wikidata":null},"bbox":[106.733581544,39.308357239,107.025123596,39.6012458800001],"center":[106.820552,39.458115],"geometry":{"type":"Point","coordinates":[106.820552,39.458115]},"context":[{"id":"district.119561774838770","text":"乌海市","language":"zh"},{"id":"region.12259570057963950","text":"内蒙古","language":"zh","short_code":"CN-15","wikidata":"Q41079"},{"id":"country.6702069377157440","text":"中国","language":"zh","short_code":"cn","wikidata":"Q148"}]},{"id":"region.5200090080520630","type":"Feature","text":"海南省","place_name":"中国海南省","relevance":0.99,"properties":{"short_code":"CN-46","wikidata":"Q42200"},"bbox":[108.515578237005,18.0698119320092,111.134676114995,20.2631455569989],"center":[109.5771,19.164822],"geometry":{"type":"Point","coordinates":[109.5771,19.164822]},"context":[{"id":"country.6702069377157440","text":"中国","language":"zh","short_code":"cn","wikidata":"Q148"}]},{"id":"district.12821841197016360","type":"Feature","text":"海南藏族自治州","place_name":"中国青海省海南藏族自治州","relevance":0.99,"properties":{},"bbox":[98.930977,34.6406900000001,101.797241,37.141197],"center":[100.6214,36.2742],"geometry":{"type":"Point","coordinates":[100.6214,36.2742]},"context":[{"id":"region.11017319148773520","text":"青海省","language":"zh","short_code":"CN-63","wikidata":"Q45833"},{"id":"country.6702069377157440","text":"中国","language":"zh","short_code":"cn","wikidata":"Q148"}]}],"attribution":"NOTICE: © 2016 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained."}
Loading

0 comments on commit 5868fa6

Please sign in to comment.