i have been asked by a customer to set up a page that collects an id that has been set in a url that has been pre programmed in to an NFC chip - the url that has been embedded is something like
http://www.mywebsite.co.uk?code=12345678
so i have a php page that collects that code and displays it on the screen, easy! They are now telling me they need the location of where the chip was scanned to be displayed too. so the question is does the lat and long have to be programmed in to the chip or does the android device send the lat and long along with the url?
or...
Do i just have to ask for the lat and long (using Javascript) when they arrive at the page?
Does any one know how this works?
Thanks in advance
Sam
Related
I am building an iOS app in Corona SDK and am trying to implement a map feature where the user can see where they are compared to where others with the app open are. What would be the best way to go at this?
I already wrote the code for finding the current location of the owner of the device, but how do I retrieve data from other users?
Any advice is greatly appreciated!
This is very broad question, but basically you need a server (on the web) where each user's location gets stored while the app is open, and the app can request the location of other users specifically, at some time interval. Presumably you would need to have some form of rights management since every user would typically be interested in seeing only a small number of other users, and every user would want to have control over who can see their location.
One thing to remind users of is that the reported position is that of the device, not that of the user, and that it is the last reported position, not necessarily current (not all devices are on cellular network or wifi at every moment), so you'd also want a time-of-last-update to be shown with every location marker.
I'm developing a navigation app for iOS using Google Maps SDK. I need to give a route search functionality only within one city, otherwise show a warning message.
So, the question is: can someone please recommend me a way to detect whether a user is within a particular city?
Great thanks in advance.
You can find out user's current latitude and longitude.
In a google map you can plot a position with lat and long, and if its true for your city's coordinates - You are on.
A great documentation is here.
I would like to check in which country the user is - I have tried a few ways but none give the requested result. My main goal is when the app launches check in which country the user is and based on this by pressing a button call a different phone number, For instance user can be in Canada use the app and by pressing the button dial an XXX number and next week with same Iphone be in the US and by pressing the same button dial a YYY number.
I have tried using CoreTelephony but this is good only for 4.0 and up i want my app to support earlier versions of iOS also tried Geocode but i do not want to display a map in my app.
Any guidance will be appreciated.
Get your current location and reverse geocode it.
Get your current location using CLLocationManager. Reverse geocoding is supported by iOS SDK 5, so if you need support versions below 5.0, you need to use external geocoding service. For example, Goolge Maps Reverse Geocoding, that is described in details here: http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding
What you need to do, just send a request like below:
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true and you'll get back a JSON with formatted address components.
I am trying to create a URL that takes a user from where they are currently to any destination and provides directions. The URL below works fine in iOS on the iPhone, but does not on the iPad as it prompts be to clarify what Current Location is:
http://maps.google.com/maps?saddr=Current%20Location&daddr=350 Broadway,%20New%20York,%20New%20York
How can I make this work in both the iPhone and the iPad?
I've Research this but...
I have researched about this for a while, and I believe there is no way to specify Current Location. I know passing Current Location as a parameter on iPhone works, but it is recognized as string Current Location rather than what you are intended.
Alternative Way
The alternative way is to get the coordinate of the user using Core Location, and then pass this coordinate as saddr parameter.
It may be a bit ugly on Maps app because there will be an annotation that indicates the user's current location and another pin annotation that indicates the coordinate you passed.
How to Get the Current User Location
Here's a post for getting the user location.
What's the easiest way to get the current location of an iPhone?
It's actually very simple, the Google Maps API documentation says to simply leave saddr blank and that will cause it to use "Current Location" as the starting point for your Directions request.
Like this:
comgooglemaps://?saddr=&daddr=1600+Amphitheatre+Parkway,+Mountain+View,+CA+94043
Google Code provides a barcode like this:
When you download software. What is its purpose (I assume it is related to the SHA1 checksum, but if so, how is it used)?
Edit: Now that I know its name, I found this article. Thanks!
This is a QR code, frequently used for entering URLs into mobile phones. It can be helpful if someone posts software that could be installed, say, on an Android phone; instead of manually entering the URL on the phone keyboard, you can just use an app like Barcode Scanner from the open source ZXing project to easily scan it in.
If you're not trying to download something directly onto your phone, it's probably not all that useful.
It's a QR code and encodes a small amount of data - typically a URL. You can scan them for example using a phone and then visit the URL.
[Update: it's a URL for downloading msysGit.]
It's a 2-Dimensional Barcode. There's software out there that can scan it.