Jump to content

Recommended Posts

Is there a way I can do this and how much time would I need since I'm not good with javascript (more of a php guy...):

 

- Images upload form : User pins a place on a gmap, and it stores a variable for the form.

- The location the images were taken is processed in the photo processing and stored in db.

- When a user views the image, a gmap opens focusing on that location.

 

- Also, it would be great if user can select 'country' and 'city' for the image in the select box.

- I will need to search pictures by their location, like, search all pictures from Manhattan.

Link to comment
https://forums.phpfreaks.com/topic/258095-help-with-simple-gmaps-v3-script/
Share on other sites

- Images upload form : User pins a place on a gmap, and it stores a variable for the form.

Easy. Stick a click handler on the map and make the handler place a marker.

- The location the images were taken is processed in the photo processing and stored in db.

Easy. Just another form variable.

- When a user views the image, a gmap opens focusing on that location.

Easy. The JavaScript to create the map also places a marker.

- Also, it would be great if user can select 'country' and 'city' for the image in the select box.

Google Maps has a way to look up latitude/longitude into a location. Just look up the country and city yourself.

- I will need to search pictures by their location, like, search all pictures from Manhattan.

Option A) Google Maps can tell you the "bounding box" for Manhattan; you search for all points within that box. You will get some false positives if a marker is within the box but not actually "in Manhattan".

Option B) You find a service that gives you more definitive bounds for places. Good luck.

Option C) You prompt people for the location of the image, they tell you what they feel like telling you (though you can verify it using option A), you store that answer somewhere searchable.

Option D) You search using all the location data you got from that latitude/longitude. You'd have to store a lot though: borough/city/county/state/country, for starters.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.