MapTwits API
It's super easy to use MapTwits to display locations on a Map. If you are looking for a simple way of supporting the new location information in Twitter's API, it's as easy as launching MapTwits on a browser and passing lat/long as parameters.
If you are developing a mobile app that geotags Twitter status updates or content, you can use MapTwits to generate short URLs for locations. This is specially handy considering that Twitter's location API is strictly opt-in. You can use the MapTwits short URLs to geotag status updates of users who have not enabled the location feature in Twitter.
MapTwits works great with mobile devices. We detect mobile browsers and make sure that all our maps and short urls are visible when accessed from a mobile device. There is no need to install any app or plugin to view our maps.
If you are developing a mobile app that geotags Twitter status updates or content, you can use MapTwits to generate short URLs for locations. This is specially handy considering that Twitter's location API is strictly opt-in. You can use the MapTwits short URLs to geotag status updates of users who have not enabled the location feature in Twitter.
MapTwits works great with mobile devices. We detect mobile browsers and make sure that all our maps and short urls are visible when accessed from a mobile device. There is no need to install any app or plugin to view our maps.
Short URL for a location
http://maptwits.com/mapapi.php?lat=latitude&long=longitude
Mandatory parameters:lat: Latitude in decimal format. Example lat=60.17122
long: Longitude in decimal format. Example long=24.94613
Optional parameters:name: Name of the place/location. Can also be any urlencoded arbitrary text. Example: Old+Wine+Bar
addr: urlencoded street address Exmple: 1500+SW+27th+St+Miami
Note: if both name and addr are not specified, MapTwits will try to find the nearest street address to the specified coordinates
Returned values:
A short URL for the location in the format http://maptwits.com/xyz
An HTTP status code 200 for sucessful API calls
Example calls:
http://maptwits.com/mapapi.php?lat=60.1641&long=24.9461
http://maptwits.com/mapapi.php?lat=47.65738&long=-122.31777&name=Portage+Bay+Cafe&addr=4130+Roosevelt+Way+NE+Seattle+United+States
Mandatory parameters:
Optional parameters:
Returned values:
Example calls:
Display a location on the map
http://maptwits.com/displaymap.php?lat=latitude&long=longitude
Mandatory parameters:lat: Latitude in decimal format. Example lat=60.17122
long: Longitude in decimal format. Example long=24.94613
Optional parameters:name: urlencoded name of the place/location. Can also be any urlencoded arbitrary text. Example: Old+Wine+Bar
addr: urlencoded street address Exmple: 1500+SW+27th+St+Miami
Note: if both name and address are not specified, MapTwits will try to find the nearest street address to the specified coordinates
Returned values:
A MapTwits.com webpage with an embedded map centered on the location in question. If the page is accessed from a mobile device it will be formatted accordingly so that the map is visible.
Example calls:
http://maptwits.com/displaymap.php?lat=60.1641&long=24.9461
http://maptwits.com/displaymap.php?lat=47.65738&long=-122.31777&name=Portage+Bay+Cafe&addr=4130+Roosevelt+Way+NE+Seattle+United+States
Mandatory parameters:
Optional parameters:
Returned values:
A MapTwits.com webpage with an embedded map centered on the location in question. If the page is accessed from a mobile device it will be formatted accordingly so that the map is visible.
Example calls:
