Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fort details should be doubles instead of longs #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Jul 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/pokegoapi/api/map/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public List<Long> getCellIds(double latitude, double longitude, int width) {
* @param lat the lat
* @return the fort details
*/
public PokemonFuture<FortDetails> getFortDetailsAsync(String id, long lon, long lat) {
public PokemonFuture<FortDetails> getFortDetailsAsync(String id, double lon, double lat) {
FortDetailsMessage reqMsg = FortDetailsMessage.newBuilder()
.setFortId(id)
.setLatitude(lat)
Expand Down Expand Up @@ -523,7 +523,7 @@ protected FortDetails handle(ByteString byteString) throws RemoteServerException
* @throws LoginFailedException the login failed exception
* @throws RemoteServerException the remote server exception
*/
public FortDetails getFortDetails(String id, long lon, long lat)
public FortDetails getFortDetails(String id, double lon, double lat)
throws LoginFailedException, RemoteServerException {
return getFortDetailsAsync(id, lon, lat).toBlocking();
}
Expand Down