Questions tagged as 'coordenadas'

3
answers

Calculate distances between two coordinates

I am using this function below to calculate the difference between two coordinates. Through google maps is informed a difference of about 2 to 3km. But the function is returning me the result 56.480188542761 Km. I would like to know if there is...
asked by 04.07.2014 / 16:31
1
answer

How to convert screen coordinates to Cartesian coordinates?

In Python: How to convert screen coordinates to Cartesian coordinates, where there may be positive and negative points and the center of the screen is (0,0)?     
asked by 18.02.2014 / 17:34
1
answer

How to center the map in the middle of the polygon?

I have a polygon formed, at first, with 3 edges, basically created using 3 locations: Maiami, Puerto Rico and Bermuda. I took the example in the documentation that shows you how to create a simple polygon . However, by API required standard, yo...
asked by 22.06.2017 / 04:07
2
answers

Menu that moves by coordinates

I'm doing this site but I can not do two things: The menu has to move to the contents as I click the options When the page load has to appear centralized along with the menu where Instagram has. I tried several methods on the net...
asked by 22.05.2014 / 01:50
1
answer

Coordinates of a PyGame image

How can I get the x and y coordinates of an image in PyGame? I need this for a game where I have to get the shot right out of an enemy. Here is the code: # -*- coding: cp1252 -*- import sys import random import pygame print pygame.init() #ini...
asked by 25.09.2015 / 21:31
2
answers

Compare Latitude and Longitude in Python

I have an application where an Android client sends the coordinates to a Python server, which should put such information in a MySQL Database if the client is within an area (a polygon of 8 vertices, to be exact), if is not within the area, it d...
asked by 05.10.2017 / 20:44
1
answer

How to get the lower Node position (x, y) in BorderPane relative to the screen?

I have a BorderPane where it defines its bottom value with an HBox: borderPane.setBottom(new HBox(children)); I'd like to know the position (x,y) mainly y of HBox in relation to the screen.     
asked by 24.11.2015 / 12:08
1
answer

How to get latitude / longitude of a geo address using Qt c ++ in windows?

Is it possible to get the coordinates (latitude and longitude) of a geographic location using only the address in Qt c ++? I know the libraries QGeoCoordinates, QGeoLocation and QGeoAddress, but I do not know if it is possible to get coordina...
asked by 06.04.2017 / 17:34
2
answers

How to find specific point coordinates

I need the coordinates of a specific Google Maps point. Like as if I clicked on a point and somehow the API showed me the mnsm string. Well I need to calculate distance between 2 points     
asked by 19.05.2015 / 04:12
1
answer

Do not duplicate integers 1 and 0 when they are above, below or next to an integer 2?

This code tells you how many fertile (1) and infertile (0) sectors are covered by at least one sprinkler (2). The a[m][n] matrix represents a land with irrigators (2), fertile lands (1) and infertile lands: #include <stdio.h> int...
asked by 08.07.2018 / 16:43