• jQuery
    6 replies, posted
Mostly done an app that I've been working on, last part is to use google.api in someway to send loc. Stats to a server so my company can send out a car Any tips or tricks, general ideas in the matter?
What? Didn't really understand much of this. I get what you mean but what do you mean by google.api? like the android location api or google maps? I assume that's what you mean by "loc. Stats"
If I deducted that terrible sentence fragment correctly. He's trying to take data from a google api, and send it to his server. Presumably you're talking about a web "app" and not a mobile app? You can certainly use jquery to send an ajax request to a server. You will need to look up the appropriate functionality from google, and jquery to accomplish it. Look up ajax at [url]http://jquery.com[/url], and look up geolocation api google. You should really rephrase your post and give significantly more information. A shit post begets shit replies.
Yeah, that was my bad. Writing that while I was getting ready for a flight. But yes, the goal of the app is to use the googleMAPS.api to send ur location to our computer. Three shames and a bell for me.
If all you need is the GPS coords you don't need googles apis for that. You can ask the browser to tell you where you are. Then the user gets asked by the browser if he is ok with that. Then you can do whatever you want with it. If you do need information like city, state, address etc, you can submit the gps coordinate to googles reverse geolocation api, and it will send you back a json array with information. Browser geolocation: [url]https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation[/url] Google maps reverse geolocation: [url]https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse[/url] [editline]22nd March 2016[/editline] Also bewary of Google's TOC for their api's... they're a bit restrictive (usually says you can only use the data returned in conjunction with their maps)
I've actually tried to used an ajax request to get data, but then when I called the google maps api, my request was stopped. So...hopefully you'll have more success than me.
im using appery.io does it look possible still to make those kinds of changes/additions? or am i going to have to redo everything?
Sorry, you need to Log In to post a reply to this thread.