Yahoo!’s new twist on mapping APIs
One of the most exciting things I’ve seen at Yahoo! since starting here has finally been made public: the new Yahoo Maps. The map application itself differs from many other recent map sites in being rendered entirely in Flash. This leaves far more scope for interface niceties, but doesn’t it reduce the scope for hacking that made things like Google Maps so much fun?
Not at all. The maps team have produced a set of APIs that should make any geo-hacker very happy indeed. Take a look at these, all launched today:
- Flex API, for adding maps to Flex applications. I’m don’t know too much about Flex (which is billed by Macromedia as an “enterprise” development tool), but the syntax example is pretty compelling:
<yahoo:YahooMap id="myMap" width="550" height="400" zoomLevel="3" latitude="37.77159" longitude="-122.401714" />
That’s the core APIs relating to maps, but geo-hackers will be pleased to hear about some of the related API and API improvements that have also been rolled out:
- A Geocoding API. Geocoding is when you take an address (or partial address) in text format and turn it in to a latitude/longitude point or set of possible matches.
- A Map Image API, which gives you direct access to the tile servers. Specify a point or address and some dimensions and get back a custom generated map image. This means you can build a mapping application without any client side scripting at all, or alternatively roll your own panning/zooming code in any language or platform you can think of.
- A new version of the Local Search Web Service, which now returns specific location information as a lat/long pair.
- A traffic API, providing traffic alert information for the location you specify. Again, lat/long is included.
I think you’ll agree that this is all extremely exciting stuff. You can see some of the applications people have already built with it in the applications gallery. I’m sure there will be plenty more added over the next few weeks as creative people (especially Flash developers who haven’t had access to tools like this before) get their teeth in to the new APIs.
Before I get your hopes up too much though, there are a few significant features that are currently missing from the current set of mapping tools.
- It’s US only at the moment. This really sucks for the rest of the world. Personally I’d love to see at least country outlines added as soon as possible.
- No aerial photos or satellite images.
- There’s a slightly odd restriction on using the APIs for “real time” applications. My guess is that this is related to the license under which the map data itself has been procured, to protect someone else’s business model. On further reading, it seems that the Google Maps API has the same restriction.
More recent articles
- Understanding GPT tokenizers - 8th June 2023
- Weeknotes: Parquet in Datasette Lite, various talks, more LLM hacking - 4th June 2023
- It's infuriatingly hard to understand how closed models train on their input - 4th June 2023
- ChatGPT should include inline tips - 30th May 2023
- Lawyer cites fake cases invented by ChatGPT, judge is not amused - 27th May 2023
- llm, ttok and strip-tags - CLI tools for working with ChatGPT and other LLMs - 18th May 2023
- Delimiters won't save you from prompt injection - 11th May 2023
- Weeknotes: sqlite-utils 3.31, download-esm, Python in a sandbox - 10th May 2023
- Leaked Google document: "We Have No Moat, And Neither Does OpenAI" - 4th May 2023
- Midjourney 5.1 - 4th May 2023