java - get location based on image -


i trying location (preferably city name) based on image uploaded.
can see similar functionality used in google image search drag drop image , gives lot of information including location.

there api (or other way) through can similar sort of information? have checked tineye requires commercial license can't use that

i got solution this.
using multiple google apis 1 result

  1. google image search api call json api https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=http://www.aparisguide.com/eiffeltower/eiffel-tower1.jpg
    result json information/content image. can use content in step 2

  2. google search api
    content or title obtained previous search, try accessing google search api http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=eiffel%20tower
    this return lat , lng search results json

  3. google geocode api
    available lat , lng previous search can call geocode api below
    http://maps.googleapis.com/maps/api/geocode/json?latlng=48.858228,2.294388&sensor=true
    this again return json list of possible address. little processing of data can give me city.

note: results not consistent can solve purpose extent


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -