I am having a play with Facebook Places but don't want to publish my current location for privacy reasons. I therefore changed the geo.wifi.uri in the about:config in Firefox to point to a file containing JSON of my location with the lat and long. This works great and if I test by using Google Maps or the Mozilla Geolocation test I get the location I have specified. However, if I 'Check in' via Facebook (touch.facebook.com) in Firefox I can see the location on the little Bing map but get the following error
We couldn't determine the coordinates of this location. Check if your latitude and longitude are in range, and verify the format of the location.\n
Any ideas?
Thanks
I have wired up Google Latitude to Firefox geolocation. This lets you manually update your location in Google Latitude with a single mouse click, instead of looking up your latitude and longitude yourself and typing it into a local file or URI. My article on the subject is Make Firefox Take Geolocation From Google Latitude.
I am not normally a Facebook Places user, but I browsed over to touch.facebook.com and clicked Places, and was presented with the usual permission prompt and then a list of nearby places. So the problem does not seem to be in Facebook or in Firefox. Without looking at your JSON I could not guess why it's not working.
Cheers, MetaEd
Related
Can I use shared location or route url via google maps in sdk. For example, can I open the route url I created on google maps in my own application? example link: https://goo.gl/maps/n15Bt48Bu5nWap8B8
Thanks
Yes you can use roads API
https://developers.google.com/maps/documentation/roads/snap
The Roads API takes up to 100 GPS points collected along a route, and returns a similar set of data, with the points snapped to the most likely roads the vehicle was traveling along. Optionally, you can request that the points be interpolated, resulting in a path that smoothly follows the geometry of the road.
I built an app in flutter, dart to access the location of the user. I now want to share the current physical location of the user via Whatsapp, email etc but not as coordinates.
I have tried geolocation as well as location but seem to only manage to get the coordinates. Below is a snippet of my share button that shows me the coordinates.
_share(){
Share.share('I have arrived safely at ${_currentLocation.latitude} & ${_currentLocation.longitude}');
}
I am expecting to see a message that can be shared to anyone on my device that provides my current location. I am not receiving any error messages as i am currently only getting the coordinates as shown in the code. What can be done to share the physical location of my device?
I have figured out that the only way to be able to share your location via a flutter app is to add the coordinates to a url string of google maps
i.e.
_share(){
Share.share('https://www.google.com/maps/search/?api=1&query=${_currentLocation.latitude},${_currentLocation.longitude}');
}
I'm implementing a webpage using the Facebook tools and PHP SDK.
I've created the Facebook login/logout. I also have the coordinates (latitude and longitude) of the user accessing the webpage/app. But then, I want is to show in a map all the public Facebook events near the user during today.
So, what I need is the code lines that, using the coordinates, get the near events. Where do I have to write this lines? I imagine that into the index.php creating an "if" condition (if user is logged, get the events and show them in the map).
And what if I want to show all the public events related to a fixed keyword? For example: plot in a map the events near the user that are related to the word "music".
Thanks a lot!
I'm guessing not, but I'm creating an app that gets the users coordinates using CLLocationManager, then passes the coordinates into Google maps to display directions. When the webpage opens to display, it requests the users location, and if the user says yes, it somehow affects some variables in my code. I was curious if the prompt from Google maps can be disabled, or if the coordinates that Google maps does take in can be retrieved by my app somewhere. I'm pretty sure neither are possible, just tossing it out there.
short answer. NO.
The location fetching in google maps app is done through JavaScript api
more details here
if you can disable the javascript the map routing itself might not work so NO.
the part about retrieving variables, I think you can check the webview shouldStartLoadWithRequest and check the url, maybe that has some information you can fetch out.
If anyone else needs it, here is an answer
let mapView = GMSMapView()
mapView.isMyLocationEnabled = false
If you visit maps.google.com on a mobile device, then press 'Menu', 'Get Directions', and select the 'transit' option, you are taken to a page where you can enter two locations and a date/time, and get directions on public transit. However, the URL is still maps.google.com.
Is there any way to link directly to this page so that I can load it in a UIWebView in my iOS app? Would 'clicking' the buttons in Javascript be (the only/a good) solution?
Try: http://www.google.com/transit
Even clicking the buttons in javascript doesn't seem to be working. The Google Maps code is a little strange- the event listeners aren't assigned directly and I can't get a .click() to work. So what I'll do is have the user enter the two locations in boxes in the app, then load something like http://maps.google.com/maps?f=d&source=s_d&saddr=Coover+Hall&daddr=lied+rec+center in the UIWebView, except I'll add some more specific location information before building the URL, since this is a city-specific app. Not a perfect solution but it gets the job done.
You could create a URL that links to the transit directions with the "dirflg=r" paramater.
Find the other URL parameters here: http://web.archive.org/web/20110714031648/http://mapki.com/wiki/Google_Map_Parameters