Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cities API with images

Tags:

rest

maps

Is there any API that can provide photos of city and data about that city (like latitude and longitude)? And it's not Google API
And also ANY free cities APIs links(especially with images) would be really helpful.
And also I want to know if there's any APIs that gives something like interesting facts about places or something like that.

like image 219
aNOOBis Avatar asked Sep 05 '25 21:09

aNOOBis


1 Answers

No more service Topia and Teleport free service. That web site turns to charged service.

enter image description here

Using TELEPORT PUBLIC APIS

It provides the city image and location(latitude and longitude).

Example: Paris

#1 Find Paris id https://api.teleport.org/api/cities?search=paris

"https://api.teleport.org/api/cities/geonameid:2988507/"

#2 Get location https://api.teleport.org/api/cities/geonameid:2988507

    "location": {
        "geohash": "u09tvmqrep8np02g7x9y",
        "latlon": {
            "latitude": 48.85341,
            "longitude": 2.3488
        }
    }

#3 Get Image https://api.teleport.org/api/urban_areas/slug:paris/images/

            "image": {
                "mobile": "https://d13k13wj6adfdf.cloudfront.net/urban_areas/paris-0ae0bb626e.jpg",
                "web": "https://d13k13wj6adfdf.cloudfront.net/urban_areas/paris_web-0a3c7314a5.jpg"
            }

https://d13k13wj6adfdf.cloudfront.net/urban_areas/paris_web-0a3c7314a5.jpg

They support API Explorer

http://developers.teleport.org/api/reference/

like image 54
Bench Vue Avatar answered Sep 09 '25 22:09

Bench Vue