TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Geocoding APIs compared: Pricing, free tiers and terms of use

142 点作者 luismedel21 天前

38 条评论

simonw21 天前
This document mentions attribution requirements, doesn&#x27;t touch on the questions I&#x27;m most interested in with respect to geocoding APIs:<p>- Can I store the latitude&#x2F;longitude points I get back from the API in my own database <i>forever</i>, and use them for things like point-in-polygon or point-closest-to queries?<p>- Can I &quot;resyndicate&quot; those latitude&#x2F;longitude points in my own APIs?<p>I&#x27;ve encountered quite a few popular geocoding APIs (including Google&#x27;s) that disallow both of these if you take the time to read the small print. This massively limits how useful they are: you can build a &quot;show me information about this location right now&quot; feature but if you have a database of thousands of addresses you can&#x27;t meaningfully annotate data in a way that&#x27;s valuable in the medium-to-long-term.<p>The API thing matters because it&#x27;s not great having location data in your database that you can&#x27;t expose in an API to other partners!<p>I really like OpenCage for exactly this reason: <a href="https:&#x2F;&#x2F;opencagedata.com&#x2F;why-use-open-data" rel="nofollow">https:&#x2F;&#x2F;opencagedata.com&#x2F;why-use-open-data</a><p>&quot;Store geocoding results as long as you like. Keep results even after you stop being a customer.&quot;
评论 #43772269 未加载
评论 #43772617 未加载
评论 #43775676 未加载
评论 #43777590 未加载
评论 #43771550 未加载
评论 #43772596 未加载
freyfogle21 天前
Hi, Ed here, one of the founders of OpenCage. This comparison is a bit shallow to be honest, as it basically just looks at price. Of course price is important, but as someone who has worked on geocoding for 10+ years and helped literally thousands of customers there are many more factors to consider depending on your needs.<p>For example: quality (not generally, but versus your actual input data), terms &amp; conditions of what you can do with the data, support, data enhancements (things like timezones, etc, etc), ease of use, documentation, terms of payment, and more.<p>The only real answer to &quot;which geocoding service is best&quot; is &quot;it depends&quot;.<p>We have a comprehensive geocoding buyer&#x27;s guide on our site: <a href="https:&#x2F;&#x2F;opencagedata.com&#x2F;guides&#x2F;how-to-compare-and-test-geocoding-services" rel="nofollow">https:&#x2F;&#x2F;opencagedata.com&#x2F;guides&#x2F;how-to-compare-and-test-geoc...</a><p>Please get in touch if you need geocoding, hapyp to tell you if your needs are a good match for our service. Happy also to tell you if not.
评论 #43771953 未加载
评论 #43772063 未加载
yellowbkpk21 天前
I love seeing all the great comments in here about the different APIs and the features they do and don&#x27;t offer, but I want to point out that the underlying data for addresses is incredibly hard to find. The reason the commercial geocoding providers won&#x27;t let you store their data is because they&#x27;re worried you&#x27;ll store enough data to build your own geocoder.<p>To help with this, a group of folks (including me) started OpenAddresses (<a href="https:&#x2F;&#x2F;openaddresses.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openaddresses.io&#x2F;</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;openaddresses&#x2F;openaddresses&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;openaddresses&#x2F;openaddresses&#x2F;</a>) with the goal of finding every open address dataset in the world. We produce a zip file with 100M&#x27;s of addresses that several of the APIs mentioned in this thread use as a major part of their dataset. We&#x27;ve been going for well over 10 years now, but it would be great to have more eyes looking for more address sources. Check us out!
评论 #43775917 未加载
Doctor_Fegg21 天前
The killer host-it-yourself component which mostly flies under the radar is Photon: <a href="https:&#x2F;&#x2F;github.com&#x2F;komoot&#x2F;photon">https:&#x2F;&#x2F;github.com&#x2F;komoot&#x2F;photon</a><p>I&#x27;m simplifying slightly, but it&#x27;s essentially OSM&#x27;s Nominatim geocoder data with a ready-to-download db, autocomplete capabilities, and a single .jar to install. If you&#x27;re happy with the limitations of OSM&#x27;s data (basically, patchy housenumber coverage) then it&#x27;s easy and fast.
评论 #43775794 未加载
jasongill21 天前
One good test of geocoding API&#x27;s is to put in a PO Box-only ZIP code like 22313. If you get back Alexandria VA near 38.82 N -77.05 W then you&#x27;ve found a decent geocoding API. If you get no location back or if you get some other place, you&#x27;re going to have a bad time in production, based on my experience.
jillesvangurp21 天前
Opencage is pretty decent value if your use case fits within what it can do. It has some limitations (e.g. limited support for house numbers and commercial place names) but it has some redeeming features and a generous free tier and rate limits. If it&#x27;s good enough, the price&#x2F;performance&#x2F;quality ratio might be hard to beat. If it isn&#x27;t, there are more expensive alternatives.<p>Ed Freyfogle (the founder) is a nice person, very knowledgeable about all things geo, pretty approachable and co-runs the geomob podcast (worth checking out), associated meetups (worth going to). If you are unsure, get your free API key and just give it a try. His documentation is awesome and the API is really easy to get started with.<p>Disclaimer, Ed&#x27;s a friend and I&#x27;m a user of his product.
LordHeini21 天前
There is another option.<p>- Get a (cheap) docker capable server.<p>- Install the OSM&#x2F;Nominatim stack using docker.<p>Setting this up used to be a pita, but due to docker its super easy.<p>This has a couple of benefits.<p>Like fixed, predicable costs. You can whatever you want without thinking about weird API points which costs a random amount of money. You can serve whatever traffic you want and a cheap v-server gets you an astonishingly long way. There are no 3rd-party privacy issues you can just embed your maps without annoying cookie banners.
评论 #43772797 未加载
评论 #43772706 未加载
评论 #43772163 未加载
lukeqsee21 天前
Since this article was written, we&#x27;ve (Stadia Maps) also launched and made significant progress with our own Geocoding API: <a href="https:&#x2F;&#x2F;stadiamaps.com&#x2F;products&#x2F;geocoding-search&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stadiamaps.com&#x2F;products&#x2F;geocoding-search&#x2F;</a><p>It was originally based on Pelias, but we&#x27;ve since augmented with additional data sources (such as Foursquare OS Places) and significantly improved the baseline for performance and accuracy.<p>Happy to answer questions on the topic!
评论 #43771547 未加载
评论 #43771406 未加载
bigsassy21 天前
I&#x27;ve found Geocodio to be a good option too, especially if you need to do batch processing: <a href="https:&#x2F;&#x2F;www.geocod.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.geocod.io&#x2F;</a>
评论 #43774281 未加载
评论 #43771215 未加载
评论 #43773177 未加载
firefax21 天前
I was hoping for information on the ACCURACY of these sources.<p>My team has had issues where SIEM alerts are difficult to investigate because Microsoft inaccurately declares an IP geographically distant, then fires a second alert for &quot;Atypical travel&quot; since they seem to have traversed a vast distance between logging in on say, one&#x27;s laptop and mobile.<p>(For whatever reason, mobile IPs, specifically IPv6 IPs, are the worst)<p>For me it&#x27;s not an issue of cost, it&#x27;s that if the data is inaccurate it is worse than useless -- it eats up my time chasing bad SIEM alerts.
评论 #43772265 未加载
krystofee21 天前
Sadly this article just compares pricing. When we were using Google instead of HERE, results were mostly better but not worth the price. I would rather see some opinions on the quality of results and examples where each API shines and fails. Price without mentioning features and quality is incomplete information. People wont make decisions just based on the price.
apwheele21 天前
For a newer list I would add the mapbox API as well.<p>So I work in data analytics, not so much web-mapping. For those applications, IMO local solutions, like ESRI, are good options if you are limited to addresses in the US, <a href="https:&#x2F;&#x2F;crimede-coder.com&#x2F;blogposts&#x2F;2024&#x2F;LocalGeocoding" rel="nofollow">https:&#x2F;&#x2F;crimede-coder.com&#x2F;blogposts&#x2F;2024&#x2F;LocalGeocoding</a>.<p>Googles TOS was that you can&#x27;t even cache the results, <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;maps-platform&#x2F;terms" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;maps-platform&#x2F;terms</a>. So saving to a database and doing analysis of your data is not allowed AFAICT.
janv20 天前
Hey folks, article author here. First of all: I didn&#x27;t submit it to HN.<p>As few people pointed out, this article was written in 2023 and it&#x27;s intentionally focused just on pricing – I planned a follow up about accuracy and other aspects, but Superface pivoted away from multi-provider API abstractions and I was laid off.<p>So for me this is more of a time capsule of what Superface used to be about. I&#x27;m glad if you found the article still useful and the discussion here is really informative, but I won&#x27;t be updating the article any further. Thanks for understanding!
gymbeaux20 天前
I did a dive into these services back in 2019 though some of these services in the article I’ve never heard of.<p>The three I spent a lot of time with were Azure Maps, MapQuest and of course OpenStreetMap’s Nominatim.<p>This was for a side project so the financial restrictions alone led me to settle on Nominatim. I had a dedicated Nominatim server running on a PowerEdge R620 in my closet on an array of SAS drives. Or maybe it was 500GB SATA SSDs. Anyway, I recall the normalization of addresses being a big pain point, although I was working with government data so that was going to be a pain point whether I used Nominatim or something “higher quality”.<p>I also recall becoming frustrated with some of these edits users would make to OSM (that went downstream to Nominatim’s data). Like Wikipedia, OSM’s data is often made worse by new editors who don’t understand the pragmatics of the map- for example, someone had gone through my neighborhood and traced the wooded area behind it, but did it based on satellite view and just followed the pattern of trees- even though that meant going well into people’s back yards that had only a tree or two. This really should have been a property line tracing.
tavioto20 天前
Good post, however what most people fail to see is that the quality of the result from a geocoder greatly depends on the quality of the input data.<p>Google has good normalization of that input address to identify and correct it but if the input has too much info like instructions to find the address or variations of the street name, phone numbers etc, then it gets confused and the results will not be good.<p>I deal with lots of very poorly formatted addresses for last mile and delivery companies and they have horrible data, so I created AddressHub which mostly focus on address normalization but also offers a router capability that connects to multiple geocoders and analyze the results to prevent false positives (results that are deemed of high accuracy but are even miles away from the real location).<p>It also provides caching according to the terms and conditions of the geocoders and also checks first with open data to see if the address can be geocoded with it (at no cost) then do a fallback mechanism with the geocoders to find the best result.<p>Take a look at it and let me know what I should improve: www.address-hub.com
amadeuspagel19 天前
You might not need an API at all. OpenStreetMaps data is publicly available and there are open source tools for many use cases. For reverse geocoding there is <i>Fast Reverse Geocoding Server</i>[1].<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;giangndm&#x2F;fast-pbf-query-server">https:&#x2F;&#x2F;github.com&#x2F;giangndm&#x2F;fast-pbf-query-server</a>
jonathanoliver19 天前
Founder of Smarty here, so there&#x27;s some obvious bias.<p>We&#x27;ve been in the geocoding space for over 12+ years. A geocoding API should be easy to set up, deliver rooftop-accurate geocodes, be transparent about accuracy, persist in perpetuity, have a clear pricing structure, and be lightning fast.<p>Smarty has geocodes for 210 million US addresses, including 20 million non-USPS addresses. Our US Rooftop Geocoding product is 97% accurate to the rooftop or parcel of the property. Perpetual use of our geocoding data is also available, and Smarty does have licensing available for re-syndicating lat&#x2F;long points in your APIs. Our entry-level plans for US Rooftop Geocoding have rate limits of 25,000 addresses&#x2F;second. (Most customers won&#x27;t reach this speed, but you&#x27;re welcome to try.)<p>The best way to determine a company&#x27;s geocoding accuracy is to test their products directly.
joekrill21 天前
This is a few years old now:<p>&gt; The article was updated on June 26, 2023, to include LocationIQ per the provider&#x27;s request.<p>There are a few more options now (Stadia, Geocodio, among others). And I&#x27;m surprised this doesn&#x27;t include MapBox, which surely existed then and has (comparatively) reasonable prices.
n8cpdx21 天前
Missing ArcGIS Location Platform: <a href="https:&#x2F;&#x2F;location.arcgis.com&#x2F;pricing&#x2F;#geocoding" rel="nofollow">https:&#x2F;&#x2F;location.arcgis.com&#x2F;pricing&#x2F;#geocoding</a>
jmorrison21 天前
I have an admittedly resource-intensive, self-hosted, podman&#x2F;docker-based slippy map product prototype. Briefly, it incorporates the nominatim geocoder, the valhalla routing engine, a map tiler, and PostGIS. One of its front-ends is <a href="https:&#x2F;&#x2F;github.com&#x2F;nilsnolde&#x2F;valhalla-app">https:&#x2F;&#x2F;github.com&#x2F;nilsnolde&#x2F;valhalla-app</a>. If you are interested in participating in a beta test, please email me at my work address jm@symbolic-simulation.com.
matty2220 天前
I&#x27;m working on a side project now and I&#x27;m using Nominatum at the moment. Normalization of addresses is the real pain point for Nominatum. Sometimes something as simple as &quot;Avenue&quot; vs &quot;Ave&quot; can be the difference between finding a matching location and not finding a match.<p>Any comparisons that includes address normalization (in addition to price, usability of the API, etc.) would be a great help.<p>Anyone know of a robust comparison of these services?
kingnothing21 天前
This is a pretty incomplete comparison. It only seems to be for real-time non-stored use cases and doesn&#x27;t even include AWS or the US Census Bureau&#x27;s free API.
omnibrain21 天前
Positionstack is missing from the comparison, so I spare you the story how they had a weeks long outage right after I implemented it in our software...<p>The trouble with most of the geo and map stuff is, that pricing is one dimension, but most of them have very different rules regarding usage. For example some prohibit you from persisting the geocoded locations. Others want you to pay more if you do something they consider &quot;asset tracking&quot;.
评论 #43771679 未加载
stevage21 天前
I made a thing like this years ago, with the cheesy domain getlon.lat.<p>But I stopped maintaining it and renewing the domain.<p>You can see it here: <a href="https:&#x2F;&#x2F;stevage.github.io&#x2F;which-geocoder&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stevage.github.io&#x2F;which-geocoder&#x2F;</a>
mosselman21 天前
We use LocationIQ and are very happy. We&#x27;ve negotiated a different rate limit.<p>The big difference between Google Maps is the quality of the results. Location IQ is basically hosted Nominatim. It is fine for many things, but at the street address level it starts breaking down.
coolThingsFirst21 天前
My side project requires geocoding and the prices are absolutely extortionate. I need places to get (lat, long) and it&#x27;s insane how expensive it is. Fortunately for me I found with places a relatively simple solution.
empyrrhicist21 天前
No mention of OpenRouteService, which you can spin up locally yourself and which offers a variety of similar services:<p><a href="https:&#x2F;&#x2F;openrouteservice.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openrouteservice.org&#x2F;</a>
评论 #43775867 未加载
janpio21 天前
(2023)
stormfather21 天前
I am trying Geocod.io right now and its been a very smooth experience so far. Generous free tier, no credit card required, good docs and a dedicated node library. And I can store results.
motoxpro20 天前
Just found <a href="https:&#x2F;&#x2F;radar.com&#x2F;pricing" rel="nofollow">https:&#x2F;&#x2F;radar.com&#x2F;pricing</a> 100k free calls&#x2F;month.
skc21 天前
I actually don&#x27;t see anywhere on the Nominatim website that restricts commercial usage contrary to the article&#x27;s comparison chart,
评论 #43772877 未加载
atemerev21 天前
Nice. I need to batch process my entire database of addresses (100M entries), so only local Nominatim will work.
评论 #43773203 未加载
lucidhss21 天前
Geocodify is another strong option, especially if you need batch processing at a good price — see geocodify.com
nodesocket21 天前
Somewhat related, what are some recommended IP geolocation providers today in 2025 and associated cost?
评论 #43777683 未加载
评论 #43772947 未加载
评论 #43777352 未加载
cpursley21 天前
<a href="https:&#x2F;&#x2F;www.geoapify.com" rel="nofollow">https:&#x2F;&#x2F;www.geoapify.com</a> is really nice has has some react components you can quickly hit the ground running with.
iJohnDoe21 天前
What is the best SSID to location service?
juliansimioni21 天前
Geocoding is a really fun (and sometimes frustrating) problem I&#x27;ve been lucky enough to have been working to solve for over 10 years now.<p>I joined Mapzen in 2015 which ostensibly was part of a Samsung startup accelerator, but looking back, it&#x27;s more descriptive to say it was an open-source mapping software R&amp;D lab. We built what is now foundational open-source geospatial tools like the Pelias geocoder (my team) and the Valhalla routing engine. A lot more projects like the Tangram map renderer are still really useful post-Mapzen.<p>A reasonable, but very wrong, first assumption about geocoding is that with a database of places you&#x27;re almost there. Inputs are often structured, like some addresses, but the structure has so many edge cases you also have to effectively consider it unstructured. The data is the same, sometimes worse as a lot of data sources are quite bad.<p>Over the last 10 years we&#x27;ve explored most strategies for full text search, and no ONE solution knocks it out of the park. We started with really simple &quot;bag of words&quot; search, just looking at token matches. That, fairly predictably was mostly a mess. With billions of places in the world recorded in open datasets, there&#x27;s going to be something irrelevant somewhere that matches, and probably drowns out whatever you&#x27;re looking for.<p>Parsing inputs for structure is an enticing option too, but for any pattern you can come up with, there&#x27;s either a search query or some data that will defeat that structure (try me).<p>The previous generation of ML and a lot of sweat by Al Barrentine produced libpostal(<a href="https:&#x2F;&#x2F;github.com&#x2F;openvenues&#x2F;libpostal">https:&#x2F;&#x2F;github.com&#x2F;openvenues&#x2F;libpostal</a>), which is a really great full-text address parser. It&#x27;s fast and accurate, but it doesn&#x27;t handle partial inputs (like for autocomplete search), doesn&#x27;t offer multiple parsing interpretations, and still isn&#x27;t always right.<p>What we&#x27;ve settled on for now for autocomplete is a pretty sophisticated but manually configured parser, which can return multiple interpretations and is also quick to fall back to &quot;i don&#x27;t know&quot; (how can you really parse meaning out of a short input like &quot;123&quot;: is it the start of a postalcode? a housenumber? the name of a restaurant?). It&#x27;s also runtime bound to make sure it always returns in a few milliseconds or less, since autocomplete is extremely latency sensitive. Then we can either search with the benefit of more structure, or worst case fall back to unstructured, with a LOT of custom logic, weights, filters, and other tricks as well.<p>A big question right now is will next generation LLMs completely solve geocoding, and honestly I&#x27;m not sure. Even older ML is really eager to over-generalize rules, and while newer LLMs do that less, they also still hallucinate, which is pretty much a dealbreaker for geocoding. At least for now LLMs are also orders of magnitude too slow, and would never be cost effective at current prices. Personally I think us geocodeurs will be in business a while longer.<p>There&#x27;s so much more about geocoding I love talking about, it&#x27;s truly a niche filled with niches all the way down. This is the sort of stuff we are always iterating on with our business Geocode Earth (<a href="https:&#x2F;&#x2F;geocode.earth&#x2F;" rel="nofollow">https:&#x2F;&#x2F;geocode.earth&#x2F;</a>). We think we have a really compelling combination of functionality, quality, liberal usage license (hi simonw!), respect for privacy, and open-source commitment. We always love hearing from people interested in anything geocoding so say hello :)
throwaway8152321 天前
This is advertising and also most of that can be done with openstreetmap data instead of an API, I&#x27;d expect.
评论 #43771193 未加载
评论 #43771018 未加载
评论 #43772038 未加载