Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Jilano thanks, but yeah, tried already, its db seems to be very small and can't find good results for chinese cities for example
-
@telephantasm that summarizes it pretty well indeed
@Jilano sure, if you find anything please tell us, I am on the hunt too 😄 -
Found this for long+lat geocoding lookups, so far it seems promising, so that's half the fun: https://locationiq.org/#demo
-
Dont worry. They said every developer account will get $200 or $300 (cant remember exactly) credits for free. Only if your usage exceeds that (lucky you) do you need to start paying. I do believe you still have to have a billing method setup (you know, so they can datamine our credit cards too now)
-
@InterferenceObj yeah, bad experienxe with that kind of payment handling, especially when it comes to API, just return a limit error then if I exceed some random filter, instead of automatically charging
-
@teganburns
<They have billing limits you can set.>
Well atleast something, though read on, they made the math too:
"40,000 Directions calls" a month, that's only 1333~ calls a day, reaching that limit is very easy and they know it, though atleast embed map loads seem to be unlimited and free
<to see my traffic>
"Bandwidth 43.45 GiB" for just a static website? what are you hiding from us on your server? also I don't think you should expose the panel if you're not censoring things like IP, iirc there's also laws against that
-----------------
To everybody else who might be checking comments, I have found a way together with locationiq (which allows 10,000 requests/day) and openstreetmaps to replicate that distance lookup google did in the past, will keep you updated, since it does provide the time needed to travel, but not the distance, so that will have to be e.g. averaged. -
@telephantasm @Jilano found something else than locationiq - "nominatim" from OSM, which resolves the names usually closer to the actual location it seems so far, it's accurate enough for me too, especially with the country added to the request, a quick throw together:
https://codepen.io/anon/pen/...
it doesn't give you the distance either though, so that'll have to be approximated based on the driving time, will look further and update if I find a better method -
@CozyPlanes @telephantasm @Jilano
After looking at the osm devtools, I realized that osrm* has a route option (it's description when I first looked, didn't quite fit the case), which actually returns both duration and distance and also allows you to filter away all sort of unnecessary steps
So here's the updated version which fetches both time and distance between two cities/addresses
https://codepen.io/anon/pen/...
* http://project-osrm.org/docs/... -
@Floydian basically yeah, as I said, they did the math and saw mad cash that's not flowing into their pockets and basically everybody uses their map and route services, e.g. because they have live data from millions of phones on the street, mining traffic data for them
-
@devTea I'll also quote what I wrote above:
"40,000 Directions calls" a month, that's only 1333~ calls a day, reaching that limit is very easy and they know it, though atleast embed map loads seem to be unlimited and free
So google maps APIs will now basically be a pay to play, like many other services of google, is there any actually good alternative for getting long+lat and distance matrix for free?
rant