News for hackers. Stuff that matters.
Re:Amazon Maps API by whalesalad on Monday September 17, 2012 @08:56AM (#4532299)
Aw I was REALLY hoping to see geocoding + reverse geocoding.

To clarify why, the landscape for that is fairly grim right now. GeoNames (http://www.geonames.org) seems to be the best that i've evaluated thus far. It'll cost you at scale (not much), but it's international and can find nearby neighborhoods/cities. Google requires you to display their information on one of their maps if you use them to geocode or reverse geocode.

Question for iOS devs out there: how are you finding nearby cities in your app from a lat/lng point? (is even asking this against the ios rules?) Right now I am using geonames and the results are pretty decent. Works for now!

Re:Amazon Maps API by aw3c2 on Monday September 17, 2012 @10:27AM (#4532699)
Give OpenStreetMap a try. It is free and open. Just they way these things ought to be. You can set up your own geocoding server with Nominatim: http://wiki.openstreetmap.org/wiki/Nominatim#Reverse_Geocodi...

There is a VM to play around as well: http://www.openstreetmap.org/user/AndrewBuck/diary/17698

Also there is Mapquest's API which uses this: http://open.mapquestapi.com/geocoding/

Re:Amazon Maps API by cullenking on Monday September 17, 2012 @12:08PM (#4533212)
Note: I have setup a nominatim server. Unless you have 128gb of ram and some SSD's or 15k SAS drives, be prepared to wait over 1 month. The indexes are intense and they take, literally, over a month to create if you end up swapping. To avoid swapping you need at least 128gb of ram....
Re:Amazon Maps API by aw3c2 on Monday September 17, 2012 @12:53PM (#4533480)
That is way to pessimistic and fear mongering in a way.

There are some numbers available at http://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks (eg getting it into EC2 in a day for ~30USD). Even just a week would be a pessimistic estimate.

I guess if all you want is geocoding, you could exclude a lot of data before importing it. Eg landuses without names, lots of single nodes that have nothing to do with addresses, etc.

Re:Amazon Maps API by cullenking on Monday September 17, 2012 @08:52PM (#4535703)
Have you set it up? I have...and I am giving you the amount of time it took to do a world import on data from January. This was on a quad core xeon 5345 with 32gb of ram and a dedicated SSD for swap, with database living on a RAID10 of 8 7200 rpm drives. In other words, the box is decent.

I am not trying to fear monger, I am just trying to say "hey, BTW unless you have a big hardware budget, you might want to just pay a third party".

Re:Amazon Maps API by aw3c2 on Tuesday September 18, 2012 @05:09AM (#4537084)
I have not but looking at the numbers I linked there seems to have been something wrong with your importing.
Re:Amazon Maps API by jrabone on Monday September 17, 2012 @09:11AM (#4532357)
TomTom have a geocoding API [disclosure: I work for them]

http://www.tomtom.com/en_gb/licensing/press-room/press-relea...

Re:Amazon Maps API by ajju on Monday September 17, 2012 @12:57PM (#4533511)
Please get them to have a web based signup to at least try it. "Please contact Global Sales Operations for access" is too much friction.
Re:Amazon Maps API by rburhum on Monday September 17, 2012 @02:11PM (#4533934)
Or at least to reply. I have called them several times and I can never get a hold of somebody with pricing information.
Re:Amazon Maps API by buro9 on Monday September 17, 2012 @10:10AM (#4532620)
Does anyone remember Fire Eagle from Yahoo?

Over 5 years old, API is still available: http://fireeagle.yahoo.net/developer/explorer/0.1/lookup

Re:Amazon Maps API by myelin on Monday September 17, 2012 @05:01PM (#4534874)
Blast from the past! I worked on this project, mainly on the associated Facebook app, "Friends on Fire". The original crew has scattered around the place - several work at Twitter now, one is running a dev shop in Uruguay, one is freelancing in SF, a couple are at various startups down the peninsula.

Easter egg: All the little pixel characters on the homepage are members of the dev team. I'm the one on the left in blue jeans and a dotted shirt :)

Re:Amazon Maps API by lancefisher on Monday September 17, 2012 @10:57AM (#4532837)
Check out Yahoo's PlaceFinder API. You get 50,000 requests per day for free. This has worked well for me in the past. http://developer.yahoo.com/geo/placefinder/
Re:Amazon Maps API by sylvinus on Monday September 17, 2012 @09:03AM (#4532328)
I worked on this last week and I found GeoNames' results to be quite poor.

The best replacement I found when going over Google's limits was Yahoo's PlaceFinder.

I integrated Google, GeoNames and Yahoo in a npm module: https://github.com/sylvinus/geocoder

Re:Amazon Maps API by tdj on Monday September 17, 2012 @09:31AM (#4532443)
I strongly recommend Gisgraphy - http://www.gisgraphy.com/ [not affiliated, just a happy user].

They offer both SaaS, as well as a simple way to deploy the whole thing and run a local (reverse-) geocoding server. It does take a few days to build the GeoNames + OpenStreetMap index though. I run it locally for mapping coordinates to cities and it runs quite decently, a 2-core 2GB Linux VM running PostgreSQL gets me about 80-100 queries/s. It has a nice JSON API so it shouldn't be too hard using it from iOS.

Re:Amazon Maps API by morsch on Monday September 17, 2012 @11:54AM (#4533123)
That strikes me as a fairly low number of requests per second for powerful dedicated hardware. Am I way off here? Is the problem much harder than I think it is?
Re:Amazon Maps API by evilduck on Monday September 17, 2012 @09:44AM (#4532505)
iOS's built in MapKit provides a reverse geocoding lookup API. It used to abstract away the Google geocoding API, but I'm not sure if iOS6 still relies on Google for that, I haven't looked into it.

The basic gist of it: Init a CLLocation object with a lat/long (probably pulled from the device GPS or a map dropped pin) and then call CLGeocoder's reverseGeocodeLocationInitialize and it'll return a CLPlacemark, which contains the approximate address.

To just find nearby cities from a lat/long though, you probably don't need to reverse lookup the address, it's probably easier to use something like MaxMind's free database which would give you the lat/long of cities, host it either locally on the device (a subset, obv) or on your server and then just use math to put some coordinate min/max bounds on your query to find city names nearby.

Re:Amazon Maps API by objclxt on Monday September 17, 2012 @10:13AM (#4532632)
It hasn't relied on Google since iOS 5, when CLGeocoder was introduced. This is one reason why the new geocoding classes (versus the now deprecated MapKit ones, which used Google) are somewhat less accurate and absent entirely from certain countries.
Re:Amazon Maps API by dowskitest on Monday September 17, 2012 @10:03AM (#4532582)
Geonames data + geohashing.
Re:Amazon Maps API by jack7890 on Monday September 17, 2012 @08:54AM (#4532287)
Worth noting that in July Amazon bought UpNext, an NYC startup doing cool stuff with 3D maps: http://gigaom.com/2012/07/02/exclusive-amazon-buys-3d-mappin...
Re:Amazon Maps API by seldo on Monday September 17, 2012 @08:17AM (#4532158)
Forgive me for not checking this myself as I'm on a mobile device, but isn't this just a wrapper to Google's map API?
Re:Amazon Maps API by lucian1900 on Monday September 17, 2012 @08:32AM (#4532211)
On Android, the Google Maps API is part of "Google APIs", not "Android APIs". Since they have their own Android fork essentially, they get the latter, but not the former. So now they've built an equivalent for the former.
Re:Amazon Maps API by seldo on Monday September 17, 2012 @08:37AM (#4532228)
Ah, gotcha. But still Google's map data, not some new source, yes?
Re:Amazon Maps API by mun2mun on Monday September 17, 2012 @01:24PM (#4533655)
I think map data is from Nokia[1]. API interface may be same as Google API's.

[1]http://thenextweb.com/mobile/2012/09/17/nokia-confirms-amazo...

Re:Amazon Maps API by bradddd on Monday September 17, 2012 @08:44AM (#4532252)
Yeah. That's how I read it. They're just making it easier to use on their own devices.
Re:Amazon Maps API by mbesto on Monday September 17, 2012 @09:09AM (#4532350)
So the title is terribly misleading?
Re:Amazon Maps API by suninwinter on Monday September 17, 2012 @11:32AM (#4533008)
Re:Amazon Maps API by berkut on Monday September 17, 2012 @02:31PM (#4534064)
No - looks like it's based on Nokia's Location Platform.
Re:Amazon Maps API by alimoeeny on Monday September 17, 2012 @08:35AM (#4532222)
can you see the map anywhere, I mean a sample of how it looks like? I couldn't find any previews or screenshots.
Re:Amazon Maps API by TeMPOraL on Monday September 17, 2012 @09:33AM (#4532452)
> Custom Overlays. You can display the locations of businesses, landmarks and other points of interest with your own customized markers and pins.

Does this mean there finally is some kind of map app on Android when user can place one's own marks, paths and places? One of the feature I miss in Google Maps for Android is being able to put my own data on the map (like, for example, marking places I plan to visit when going for a trip) and having it available off-line.

Re:Amazon Maps API by aw3c2 on Monday September 17, 2012 @10:29AM (#4532714)
Don't limit yourself to Google. Try OpenStreetMap apps. For example OruxMaps or OsmAnd. You can easily load routes and data into those. The underlying data is free and open and you can contribute easily (and have the changes live in minutes). OsmAnd has incredibly easy ways to select POIs to highlight.
Re:Amazon Maps API by TeMPOraL on Monday September 17, 2012 @11:59AM (#4533162)
Thanks, I'll definitely look into it! Does any of those support off-line map catching? (it's hell of an important feature for me; quite recently GPS + offline maps saved my butt when I got stranded in the middle of a highway while returning from Prague via hitchhiking).
Re:Amazon Maps API by aw3c2 on Monday September 17, 2012 @12:46PM (#4533429)
Yes, both support vector maps you can easily get.
Re:Amazon Maps API by devsatish on Monday September 17, 2012 @09:45AM (#4532507)
Title should be Amazon re-enters the maps game. Remember A9 maps and Amazon street-view
Re:Amazon Maps API by saurik on Monday September 17, 2012 @11:03AM (#4532866)
Yeah. Google did their street view project in 2007, but A9 launched it in 2005.

http://news.cnet.com/2100-1032_3-5833916.html

"Amazon A9 takes it to the streets"

> The company's A9 search subsidiary is expected on Tuesday to launch a beta of A9.com Maps, which lets people see street-level photos of addresses and get driving directions.

In fact, Google's Street View was apparently launched a week after A9 shut down. ;P

http://appscout.pcmag.com/web-browsers/277151-r-i-p-a9-maps-...

"R.I.P. A9 Maps; We Hardly Knew Ye"

> The schtick behind A9's take was to have vehicles driving around taking pictures of both sides of every major city street in the US. It looked promising (if a bit invasive), search for some business or other address and even get a photo of what the storefront looked like.

http://en.wikipedia.org/wiki/Google_Street_View

> It was launched on May 25, 2007, in several cities in the United States, and has since expanded to include cities and rural areas worldwide.

Re:Amazon Maps API by playhard on Monday September 17, 2012 @09:12AM (#4532361)
If Amazon can do things for maps like it did for file storage(s3), it would be phenomenal for developers , as most of the innovations in recent years depends on location data.

It should not be too costly for Amazon to provide maps and geo data. They should make map services part of AWS.

Re:Amazon Maps API by federicoweber on Monday September 17, 2012 @09:24AM (#4532414)
I doubt it will be that cheap, at least to implement a fully fledged service alla google maps. But sure it will be interesting for a lot of developers.

Amazon builded AWS out of necessity and then transformed it into a public service. I believe it make sense to them to build a map service in the same way, giving they they are still a logistic company it could be more than helpfull for them.

Re:Amazon Maps API by dchest on Monday September 17, 2012 @10:55AM (#4532830)
Amazon builded AWS out of necessity and then transformed it into a public service.

It's a myth.

http://www.quora.com/Amazon/How-and-why-did-Amazon-get-into-...

Re:Amazon Maps API by federicoweber on Monday September 17, 2012 @11:11AM (#4532902)
I always believed the opposite, thanks for pointing this out.
Re:Amazon Maps API by turingbook on Monday September 17, 2012 @01:17PM (#4533612)
Re:Amazon Maps API by peteretep on Monday September 17, 2012 @09:24AM (#4532417)
Just a random plug for an open source library I wrote, as I know there are a lot of you doing geolocation enabled apps: http://www.zipripjs.com/
Re:Amazon Maps API by lowglow on Monday September 17, 2012 @08:31AM (#4532205)
This is a pretty big deal. I wonder where they got their data from? Can people compete in this space without street view? It's the main reason I use google maps.
Re:Amazon Maps API by sbarre on Monday September 17, 2012 @09:09AM (#4532351)
I agree. The loss of Street View is actually one of the biggest downsides of iOS 6 in my mind.

Although I assume Google will release their own Maps app for iOS, but since Apple doesn't let you remove their built-in apps, I'm stuck with 2 maps icons, and no doubt clicking an address in any other app will load the Apple Maps app and not Google Maps.

edit: ehh sorry I just realized this is pretty off-topic. :-(

Re:Amazon Maps API by aspratley on Monday September 17, 2012 @09:39AM (#4532480)
Was it just rumour that Nokia (presumably Navteq) were going to be suppling maps to the Kindle Fire? Is that underpinning the new API?
Re:Amazon Maps API by RandallBrown on Monday September 17, 2012 @02:35PM (#4534089)
Have you ever used street view on mobile? I haven't. I don't think they're trying to compete with Google Maps in general. Just trying to give their developers a map API to use.
Re:Amazon Maps API by derekerdmann on Monday September 17, 2012 @08:37AM (#4532229)
Is this just a re-implementation of the Google Maps API? Does it have the same one-MapView-per-process restriction as the Google version?