How do I get a list of wikicommon images around a given gps location? - wikipedia-api

How do I get a list of wikicommon images around a given gps location?
Here there is the wikipedia API:
https://www.mediawiki.org/wiki/API:Main_page
https://en.wikipedia.org/w/api.php
But I don't see how to specify a coordinates of an image.

Related

How can I get more accurate results with Street View Image Metadata?

I'm using the Street View Image Metadata API to find out if a Street View image is available for land I'm looking to purchase, but I'm finding the results aren't always accurate. For example, I use the latitude/longitude coordinates of the center of the property for the queries. Since this point is in the middle of the property, it can sometimes be hundreds of feet away from the street, but still visible by Street View. When I search the coordinates in Google Maps, it provides a street view image, but when I use the API, it says "zero results." See below for examples.
Location: 37.640141,-120.347427 Google Maps View
Location: 37.637823,-120.340287 Google Maps View
As you can see in each of the examples, Street View provides an image of the location, but the API says "zero results." Any ideas for how to get better results for these types of searches?
To use the API you should use the following format:
https://maps.googleapis.com/maps/api/streetview/metadata?size=[*SIZE X*]x[SIZE Y]&location=[LATITUDE],[LONGITUDE]&fov=80&heading=90&pitch=-20&key=[API KEY]
It returns the metadata you wanted including the following information:
date,
location (lat, long), and
panorama ID

How to get Windows.Point from Lat/Long

I am using the Bing Map Control for wpf on Windows 10. Given a Lat/Long location I need to get the Windows.Point value for that location. It should be relative to the map itself, namely, the upperleft corner (0,0). I use the Map.ViewportPointToLocation to go from a mouse location to the corresponding Lat/Long. Now I need the inverse function; I have not been able to find anything via web searches.
Try the maps TryLocationToViewportPoint or LocationToViewportPoint methods.
https://learn.microsoft.com/en-us/previous-versions/bing/wpf-control/hh709346(v=msdn.10)
https://learn.microsoft.com/en-us/previous-versions/bing/wpf-control/hh709336(v=msdn.10)

Google AutoML - detect form fields on an image

Is there a way to get coordinates from an form field on an image (scanned image), by using Google vision?
With the (LocalizedObjectAnnotation) can Google detect only objects and creatures
Google OCR (fullTextAnnotation) detects only text
Scenario:
I got an scanned formular. From this scan i would get all form field-positions (input-fields).
It don't work with one or both google method's "LocalizedObjectAnnotation" and "fullTextAnnotation". Because one detect only objects / creatures and the other one only text. So both can't find the input-field in the image.
Has anyone an idee how i get the coordinates for the input-fields?

Is there a Wikipedia API to get the images of all resolutions given an image file name?

For example, given File:Wikipedia-logo-v2.svg as input, the output would include:
http://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/200px-Wikipedia-logo-v2.svg.png
http://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/500px-Wikipedia-logo-v2.svg.png
...
The original image is a vector, the urls you have provided link to the wikipedia thumbnail generator.
It will generate an image of any resolution you specify, you can just change the value in the url and it will generate an image of that size.
I don't know why you would want to use it however. You should just get the original image and scale it yourself to your own needs.

Using d3.js to display a gps route on OpenStreetMap?

I'm thinking of using d3.js to display a gps route using OpenStreetMap as map.
I would like to be able to click anywhere along the route and get the corresponding location and timestamp. The gps locations can be anywhere around the world.
I'm new to the geo thing and not sure how to start or if this is a good approach.
/Lars