How to show all subarea of ​a country through openstreetmap API - openstreetmap

I am trying to use OpenStreetMap API to get all provinces, cities of a country.
However, when I read the API documentation, I don't know how to call all the cities of a certain country.
I hold a help. Thank you !

Related

API for Instagram, Facebook, and Twitter

I am looking to build a simple application that could search for specific # in a specific GEO location.
For example:
{#cupcakes #sweets ---- in Dallas TX}
So when a user types in the hashtags only result they will see will be results within 100 miles of desired location. Are there parameters like that within APIs for Instagram, Facebook, and Twitter? Thank you.
Check out the twitter search api:
Geolocalization: the search operator “near” isn’t available in the API, but there is a more precise way to restrict your query by a given location using the geocode parameter specified with the template “latitude,longitude,radius”, for example, “37.781157,-122.398720,1mi”. When conducting geo searches, the search API will first attempt to find Tweets which have lat/long within the queried geocode, and in case of not having success, it will attempt to find Tweets created by users whose profile location can be reverse geocoded into a lat/long within the queried geocode, meaning that is possible to receive Tweets which do not include lat/long information.

how to edit facebook events using graph api?

I am developing in which i am getting my events and my friends events using facebook graph api, now i need to perform following function.
Change event's location name.
Change event's location latitude and longitude.
Get event's Admin.
I have searched a lot but i couldn't get healthy response and solution, so please any body help me to get rid of this problem. Thanks in advance.
Looking at the Graph API https://developers.facebook.com/docs/reference/api/event/
You can change the name of the event location using the 'Location' field. Also the event owner can be retrieved with the 'Owner' field.
To change the long/lat you will need to edit the 'venue' field. Which according to to API docs is an 'object containing one or move of the following fields: street, city, state, zip, country, latitude, and longitude fields'

Google Geocoding API not returning correct latitudes,longitudes for address as returns in google maps

I am facing a strange problem of google geocoding API.
My requirement is whenever a user types any address all the corresponding locations should show in my map View(I am using MKMap View) like it happens in google maps.
So what I do is I use google geocoding API that returns me a list of latitudes and longitudes for that corresponding location.
But for some location eg:- caribou coffee, chapel hil (When I search for this location in google maps,I get a number of annotations showing that address but when I type this address in geocoding I didnt get nothing.
request url:-http://maps.googleapis.com/maps/api/geocode/xml?address=caribou%20coffee,%20chapel%20hil%20&sensor=false
response:-
-<GeocodeResponse>
<status>ZERO_RESULTS</status>
</GeocodeResponse>
Can any body tell me why I am not getting any latitude and longitude that correspnds to this address like it shown in google maps or there is some other way so that I can integrate the behaviour of google maps in my applications(mk map view).
Please help me as I am stuck here.
Any suggestions will be highly appreciated.
Thanks in advance!
Note that the address is incomplete - e.g. searching for caribou coffee, chapel hill, nc does produce a result.
I would think that Geocoding API can't do anything with such addresses, and you may need to use some extra API - e.g. Places API (https://code.google.com/apis/maps/documentation/places/ ), which can return some results for queries like "coffee". You'd need to supply the user's location to use as a base, however.

Missing Cities from Facebook all_cities_final.csv

I'm making Facebook App and I need to match the city from the user on Facebook with the city in my local database.
I've found the list of Cities from this link:
http://developers.facebook.com/attachme … _final.csv
But it seems that this is not the whole list, because there is no city from Macedonia in the list, but they do came up from auto complete when you try to write the city in your Hometown.
Am I missing something here, or is there some other list of Cities that I can find?
Also I've downloaded autocomplete_data.php from
http://developers.facebook.com/docs/reference/rest/ads.getAutoCompleteData/
and it doesn't have all cities.
Thank you.
So I just have the same issue and figured the cities are now places in the graph
https://graph.facebook.com/114897945188014
SELECT name,description,geometry,latitude,longitude,checkin_count,display_subtext FROM place WHERE page_id=114897945188014

how to get country location on Google Map in iphone using Country name only?

In my iphone application i have integrated Google Map.I want to show the country location on Google map using only country Name Only.(Not needed to use its latitude and longitude).The input only will be the country name?(i.e India) to the google Map and Map will locate it with indicate pinpoint.
Is it possible to locate the country using the country name in google Map?
Is any body has any solutuion or code snippet or any useful link,which would be appreciated.
Thanks,
Mishal Shah
There is no geocoder in the iPhone SDK at this time. You'll have to use a library likes http://developers.cloudmade.com/wiki/iphone-api/Geocoding_iPhone_example or call Google geocoder API, Yahoo etc.