Geocode address to location

부분 유료
분류별 KEPTAGO LTD | 업데이트됨 16 days ago | Location
인기

9.4 / 10

지연 시간

460ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Endpoint return: Wrong Geo Coordinates

Rapid account: Tpj 728
tpj728
4 years ago

Hello -

I’m interested in using your Geocoding API, but do you know why the below happened? It looks like it matched, but with a completely different street address. Is there any way I can ensure this pulls the actual input address?

{“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“geometry”:{“type”:“Point”,“coordinates”:[-117.58216,34.098447]},“properties”:{“housenumber”:“10223”,“street”:“San Nicholas Ct”,“country”:“United States”,“county”:“San Bernardino County”,“datasource”:{“sourcename”:“openstreetmap”,“continent”:“North America”},“country_code”:“us”,“postcode”:“91730”,“state”:“California”,“city”:“Rancho Cucamonga”,“lon”:-117.58216,“lat”:34.098447,"****formatted":“10223 San Nicholas Ct, Rancho Cucamonga, CA 91730, United States of America”,"****address_line1":“10223 San Nicholas Ct”,“address_line2”:“Rancho Cucamonga, CA 91730, United States of America”,“result_type”:“building”,“rank”:{“popularity”:4.2102906373971924,“confidence”:0.09375,“match_type”:“full_match”}}}],“query”:{“text”:“1151 San Nicholas Ct 101 Corona CA 92882”,“parsed”:{“housenumber”:“1151”,“street”:“san nicholas ct 101”,“postcode”:“92882”,“city”:“corona”,“state”:“ca”,“expected_type”:“building”}}}

Thanks.

Rapid account: Geoapify
geoapify Commented 2 years ago

Hi, sorry for the late answer. It looks like the provided address is misspelled. So the API didn’t find the correct result and provided the most possible. However, the confidence of the answer is almost 0.
When you search for “1151 San Nicolas Ct Corona CA 92882”, the result is correct:
{“results”:[{“datasource”:{“sourcename”:“openstreetmap”,“attribution”:“© OpenStreetMap contributors”,“license”:“Open Database License”,“url”:“https://www.openstreetmap.org/copyright"},“housenumber”:“1151”,“street”:"San Nicolas Court”,“city”:“Corona”,“county”:“Riverside County”,“state”:“California”,“postcode”:“92882”,“country”:“United States”,“country_code”:“us”,“lon”:-117.62662704081633,“lat”:33.87371530612245,“state_code”:“CA”,“formatted”:“1151 San Nicolas Court, Corona, CA 92882, United States of America”,“address_line1”:“1151 San Nicolas Court”,“address_line2”:“Corona, CA 92882, United States of America”,“result_type”:“building”,“rank”:{“importance”:0.42099999999999993,“popularity”:3.826735327170377,“confidence”:1,“confidence_city_level”:1,“confidence_street_level”:1,“match_type”:“full_match”},“place_id”:“511bc64da81a685dc059c0e734e7d5ef4040f00102f9017c386f0000000000c00203”}],“query”:{“text”:“1151 San Nicolas Ct Corona CA 92882”,“parsed”:{“housenumber”:“1151”,“street”:“san nicolas ct”,“postcode”:“92882”,“city”:“corona”,“state”:“ca”,“expected_type”:“building”}}}

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입