Geo Location aware Posts - iphone

I am trying to publish a post on the user news feed with the users current location.
According to the documentation on 'Post' I need to add the location information to the 'place' attribute.
But is seems it is associated with an already defined 'place'. My requirement is to just push the lat / long info to dsiplay the city. Is this possible with the current graph API ?

Currently there is no public API to push a new place info, you can only pass existing "places".

You could begin by finding the name of the current city and country by inspecting some nearby places:
/search?type=place&center=LAT,LONG
Then you can try to find the Place ID of that city:
/search?type=place&center=LAT,LONG&q=CITY, COUNTRY&limit=1
(You may have to add the state field for countries that use that division.)
Now you have a Place ID to use for your post.

Related

How to add `custom_keys` for a particular zoom meeting?

So I am using below API to fetch details of a meeting
https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#tag/Dashboards/operation/dashboardMeetingDetail
In the response of above API I can see a field custom_keys, which is some sort of identifier fo a particular meeting.
Any idea how to set these custom_keys when creating a meeting?

Deprecation notice: Obsolete Place IDs

I am setting up the plugin WP Google Review Slider, never thought it was so difficult!
I am getting error:
Deprecation notice: Obsolete Place IDs
and I cannot find where to refresh or update the place ID.
In WP dashword within the plugin I added the API key and I have to add as well the place id, when I do I gett this error message:
Google API Error: Wrong Key or Maps API not added. Due to recent changes by Google you must now add the Maps API to your existing API key in order to use the Location Lookup feature of the Google Places Widget.
View documentation here
and when I go to https://developers.google.com/maps/documentation/places/web-service/place-id, in order to get the place id I get this one: "Deprecation notice: Obsolete Place IDs" and there is no way who to find how to solve it.
Refresh the place id via:
GET https://maps.googleapis.com/maps/api/place/details/output?place_id=<your_place_id>?fields=place_id
From the docs:
We recommend refreshing place IDs if they are more than 12 months old. You can refresh Place IDs free of charge, by making a Place Details request, specifying only the place_id field in the fields parameter. This will trigger the Places Details - ID Refresh SKU. However, this request might also return NOT_FOUND status code. One strategy is to store the original request that returned each place ID. If a place ID becomes invalid, you can re-issue that request to get fresh results. These results may or may not include the original place. The request is chargeable.
Strategy
Call the Place details API to check if the place id is valid
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJDx2VxLa1j4AR--kx601BUbY&fields=place_id&key=AIzaSyBiTgTvug0-W1RSaAZOT7cI4NgwzaRHVHc
(change "fields=place_id" to "field=" to see all fields)
It can result in following
Current google place id
Updated google place id
INVALID_REQUEST - (status code indicates that the specified place ID
is not valid)
NOT_FOUND - (status code indicates that the specified place ID is
obsolete. Id is obsolete if a business closes or moves to a new
location) (in this case lat long may not be useful if a business
moves to another location)
Handling the above conditions
Do not do anything (in the future may check also the last time data
is updated in DB to avoid frequent API calls)
Update the google place id inside DB and continue with the open map
Request the google details API with lat long to get a valid google
place id
Request the google details API with a place name to get a valid
google place id

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 get the actual drop location(not the destination) of a Uber Ride via API, after the ride completes?

I can see the my actual drop location on the receipts page on riders.uber.com, but do not see that data in requests/{request_id}/receipt/ end point of the API. Is there an alternative to get this data ?
I see that a GET on requests/{request_id}/ gives the actual location of the a ride, but does this point also gives the same data on ride completion/cancellation ? On sandbox-api, on completion of ride, I get location as null, on a GET requests/{request_id}/ call
The Uber API doesn't expose this information. It provides the destination of a trip in the request details, but it does not update the destination based on the actual drop-off location.
As pointed out in the comments, ONE partial alternative for this use case might be to use the request details array of waypoints. However, it is only available for shared rides like UberPOOL.

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'