conveyal/modeify

View on GitHub
__tests__/lib/__fixtures__/mock-encode-result.json

Summary

Maintainability
Test Coverage
{"spatialReference":{"wkid":4326,"latestWkid":4326},"candidates":[{"address":"123 Main Street","location":{"x":-68.28902999999997,"y":44.29358000000008},"score":100,"attributes":{"Loc_name":"World","Status":"M","Score":100,"Match_addr":"123 Main Street","LongLabel":"123 Main Street, 123 Main St, Northeast Harbor, ME, 04662, USA","ShortLabel":"123 Main Street","Addr_type":"POI","Type":"American Food","PlaceName":"123 Main Street","Place_addr":"123 Main St, Northeast Harbor, Maine, 04662","Phone":"(207) 276-4166","URL":"","Rank":19,"AddBldg":"","AddNum":"123","AddNumFrom":"","AddNumTo":"","AddRange":"","Side":"L","StPreDir":"","StPreType":"","StName":"Main","StType":"St","StDir":"","BldgType":"","BldgName":"","LevelType":"","LevelName":"","UnitType":"","UnitName":"","SubAddr":"","StAddr":"123 Main St","Block":"","Sector":"","Nbrhd":"","District":"","City":"Northeast Harbor","MetroArea":"","Subregion":"Hancock County","Region":"Maine","RegionAbbr":"ME","Territory":"","Zone":"","Postal":"04662","PostalExt":"","Country":"USA","LangCode":"ENG","Distance":0,"X":-68.28902999999997,"Y":44.29358000000008,"DisplayX":-68.28902999999997,"DisplayY":44.29358000000008,"Xmin":-68.29402999999996,"Xmax":-68.28402999999997,"Ymin":44.288580000000074,"Ymax":44.29858000000008,"ExInfo":""},"extent":{"xmin":-68.29402999999996,"ymin":44.288580000000074,"xmax":-68.28402999999997,"ymax":44.29858000000008}},{"address":"The 123 Mart","location":{"x":175.91785000000004,"y":-37.552359999999965},"score":74.4,"attributes":{"Loc_name":"World","Status":"M","Score":74.4,"Match_addr":"The 123 Mart","LongLabel":"The 123 Mart, Main Rd, Katikati, 3129, NZL","ShortLabel":"The 123 Mart","Addr_type":"POI","Type":"Specialty Store","PlaceName":"The 123 Mart","Place_addr":"Main Rd, Katikati, 3129","Phone":"","URL":"","Rank":19,"AddBldg":"","AddNum":"","AddNumFrom":"","AddNumTo":"","AddRange":"","Side":"","StPreDir":"","StPreType":"","StName":"Main","StType":"Rd","StDir":"","BldgType":"","BldgName":"","LevelType":"","LevelName":"","UnitType":"","UnitName":"","SubAddr":"","StAddr":"Main Rd","Block":"","Sector":"","Nbrhd":"Katikati","District":"","City":"Katikati","MetroArea":"","Subregion":"","Region":"","RegionAbbr":"","Territory":"","Zone":"","Postal":"3129","PostalExt":"","Country":"NZL","LangCode":"ENG","Distance":0,"X":175.91785000000004,"Y":-37.552359999999965,"DisplayX":175.91785000000004,"DisplayY":-37.552359999999965,"Xmin":175.91285000000005,"Xmax":175.92285000000004,"Ymin":-37.55735999999997,"Ymax":-37.54735999999996,"ExInfo":""},"extent":{"xmin":175.91285000000005,"ymin":-37.55735999999997,"xmax":175.92285000000004,"ymax":-37.54735999999996}},{"address":"123 W Main St, State Center, Iowa, 50247","location":{"x":-93.16481632584107,"y":42.01650127782905},"score":67.13,"attributes":{"Loc_name":"World","Status":"T","Score":67.13,"Match_addr":"123 W Main St, State Center, Iowa, 50247","LongLabel":"123 W Main St, State Center, IA, 50247, USA","ShortLabel":"123 W Main St","Addr_type":"PointAddress","Type":"","PlaceName":"","Place_addr":"123 W Main St, State Center, Iowa, 50247","Phone":"","URL":"","Rank":20,"AddBldg":"","AddNum":"123","AddNumFrom":"","AddNumTo":"","AddRange":"","Side":"L","StPreDir":"W","StPreType":"","StName":"Main","StType":"St","StDir":"","BldgType":"","BldgName":"","LevelType":"","LevelName":"","UnitType":"","UnitName":"","SubAddr":"","StAddr":"123 W Main St","Block":"","Sector":"","Nbrhd":"","District":"","City":"State Center","MetroArea":"","Subregion":"Marshall County","Region":"Iowa","RegionAbbr":"IA","Territory":"","Zone":"","Postal":"50247","PostalExt":"","Country":"USA","LangCode":"ENG","Distance":0,"X":-93.16481632584107,"Y":42.01650127782905,"DisplayX":-93.164832,"DisplayY":42.01655400000001,"Xmin":-93.16583200000001,"Xmax":-93.163832,"Ymin":42.015554000000016,"Ymax":42.01755400000001,"ExInfo":""},"extent":{"xmin":-93.16583200000001,"ymin":42.015554000000016,"xmax":-93.163832,"ymax":42.01755400000001}},{"address":"123 E Main St, State Center, Iowa, 50247","location":{"x":-93.16319981148884,"y":42.016789740145164},"score":67.13,"attributes":{"Loc_name":"World","Status":"T","Score":67.13,"Match_addr":"123 E Main St, State Center, Iowa, 50247","LongLabel":"123 E Main St, State Center, IA, 50247, USA","ShortLabel":"123 E Main St","Addr_type":"StreetAddress","Type":"","PlaceName":"","Place_addr":"123 E Main St, State Center, Iowa, 50247","Phone":"","URL":"","Rank":20,"AddBldg":"","AddNum":"123","AddNumFrom":"101","AddNumTo":"199","AddRange":"101-199","Side":"L","StPreDir":"E","StPreType":"","StName":"Main","StType":"St","StDir":"","BldgType":"","BldgName":"","LevelType":"","LevelName":"","UnitType":"","UnitName":"","SubAddr":"","StAddr":"123 E Main St","Block":"","Sector":"","Nbrhd":"","District":"","City":"State Center","MetroArea":"","Subregion":"Marshall County","Region":"Iowa","RegionAbbr":"IA","Territory":"","Zone":"","Postal":"50247","PostalExt":"","Country":"USA","LangCode":"ENG","Distance":0,"X":-93.16319981148884,"Y":42.016789740145164,"DisplayX":-93.16319981148884,"DisplayY":42.016789740145164,"Xmin":-93.16419981148884,"Xmax":-93.16219981148883,"Ymin":42.015789740145166,"Ymax":42.01778974014516,"ExInfo":""},"extent":{"xmin":-93.16419981148884,"ymin":42.015789740145166,"xmax":-93.16219981148883,"ymax":42.01778974014516}},{"address":"Mainstraße, 48268, Greven, Reckenfeld, Nordrhein-Westfalen","location":{"x":7.554969892325715,"y":52.121028096728054},"score":60.4,"attributes":{"Loc_name":"World","Status":"M","Score":60.4,"Match_addr":"Mainstraße, 48268, Greven, Reckenfeld, Nordrhein-Westfalen","LongLabel":"Mainstraße, 48268, Greven, Reckenfeld, Nordrhein-Westfalen, DEU","ShortLabel":"Mainstraße","Addr_type":"StreetName","Type":"","PlaceName":"","Place_addr":"Mainstraße, 48268, Greven, Reckenfeld, Nordrhein-Westfalen","Phone":"","URL":"","Rank":20,"AddBldg":"","AddNum":"","AddNumFrom":"","AddNumTo":"","AddRange":"","Side":"","StPreDir":"","StPreType":"","StName":"Main","StType":"straße","StDir":"","BldgType":"","BldgName":"","LevelType":"","LevelName":"","UnitType":"","UnitName":"","SubAddr":"","StAddr":"Mainstraße","Block":"","Sector":"","Nbrhd":"","District":"Reckenfeld","City":"Greven","MetroArea":"","Subregion":"ST","Region":"Nordrhein-Westfalen","RegionAbbr":"","Territory":"","Zone":"","Postal":"48268","PostalExt":"","Country":"DEU","LangCode":"GER","Distance":0,"X":7.554969892325715,"Y":52.121028096728054,"DisplayX":7.554969892325715,"DisplayY":52.121028096728054,"Xmin":7.553969892325715,"Xmax":7.555969892325716,"Ymin":52.120028096728056,"Ymax":52.12202809672805,"ExInfo":""},"extent":{"xmin":7.553969892325715,"ymin":52.120028096728056,"xmax":7.555969892325716,"ymax":52.12202809672805}}]}